Merge branch 'master' of github.com:cyplo/dotfiles
This commit is contained in:
commit
dd04ea5367
4 changed files with 38 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
bzr launchpad-login "saipeloan"
|
bzr launchpad-login "saipeloan"
|
||||||
bzr whoami "Cyryl Plotnicki-Chudyk <bzr@cyplo.net>"
|
bzr whoami "Cyryl Plotnicki-Chudyk <bzr@cyplo.net>"
|
||||||
|
|
||||||
|
@ -16,17 +18,21 @@ bzr checkout lp:kicad kicad.bzr
|
||||||
cd kicad.bzr
|
cd kicad.bzr
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
echo "compiling...."
|
||||||
cmake -DKICAD_STABLE_VERSION=ON ../
|
cmake -DKICAD_STABLE_VERSION=ON ../
|
||||||
make clean
|
make clean
|
||||||
make -j8
|
make -j8
|
||||||
|
echo "installing..."
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
# install component libraries
|
# install component libraries
|
||||||
cd ~/build/kicad
|
cd ~/build/kicad
|
||||||
|
echo "checking out libraries..."
|
||||||
bzr checkout lp:~kicad-product-committers/kicad/library kicad-library.bzr
|
bzr checkout lp:~kicad-product-committers/kicad/library kicad-library.bzr
|
||||||
cd kicad-library.bzr
|
cd kicad-library.bzr
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build/
|
cd build/
|
||||||
|
echo "installing libraries"
|
||||||
cmake ../
|
cmake ../
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo yum groupinstall "C Development Tools and Libraries"
|
sudo yum groupinstall "C Development Tools and Libraries"
|
||||||
sudo yum install bzr bzrtools cmake GLC_lib-devel glew-devel cairo-devel bzip2-devel wxGTK-devel openssl-devel doxygen patch
|
sudo yum install bzr bzrtools cmake GLC_lib-devel glew-devel cairo-devel bzip2-devel wxGTK-devel openssl-devel doxygen patch
|
||||||
./install_kicad.sh
|
../common/install_kicad_from_sources
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,10 @@ echo "about to clone $device to $dest_file"
|
||||||
echo "ctrl-c or [enter]"
|
echo "ctrl-c or [enter]"
|
||||||
read
|
read
|
||||||
|
|
||||||
umount $device?
|
sudo umount $device?
|
||||||
umount $device
|
sudo umount $device
|
||||||
|
|
||||||
|
sudo sync
|
||||||
sudo pv -tpreb $device | dd bs=4M | pixz > $dest_file
|
sudo pv -tpreb $device | dd bs=4M | pixz > $dest_file
|
||||||
|
sudo sync
|
||||||
|
|
26
tools/restore_sdcard
Executable file
26
tools/restore_sdcard
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -z $1 ]] || [[ -z $2 ]]; then
|
||||||
|
echo "usage: $0 restore_file.xz device_to_restore_to"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
source_file=$1
|
||||||
|
if [[ ! -f $source_file ]]; then
|
||||||
|
echo "cannot open $source_file"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
device=$2
|
||||||
|
|
||||||
|
echo "about to restore $source_file onto $device"
|
||||||
|
echo "ctrl-c or [enter]"
|
||||||
|
read
|
||||||
|
|
||||||
|
sudo umount $device?
|
||||||
|
sudo umount $device
|
||||||
|
|
||||||
|
pv -tpreb $source_file | pixz -d | sudo dd bs=4M of=$device
|
||||||
|
sudo sync
|
||||||
|
sudo eject $device
|
||||||
|
|
Loading…
Reference in a new issue