Merge branch 'master' of github.com:cyplo/dotfiles

This commit is contained in:
Cyryl Plotnicki-Chudyk 2015-02-28 19:27:36 +01:00
commit dd04ea5367
4 changed files with 38 additions and 3 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
bzr launchpad-login "saipeloan"
bzr whoami "Cyryl Plotnicki-Chudyk <bzr@cyplo.net>"
@ -16,17 +18,21 @@ bzr checkout lp:kicad kicad.bzr
cd kicad.bzr
mkdir build
cd build
echo "compiling...."
cmake -DKICAD_STABLE_VERSION=ON ../
make clean
make -j8
echo "installing..."
sudo make install
# install component libraries
cd ~/build/kicad
echo "checking out libraries..."
bzr checkout lp:~kicad-product-committers/kicad/library kicad-library.bzr
cd kicad-library.bzr
mkdir build
cd build/
echo "installing libraries"
cmake ../
sudo make install

View File

@ -1,5 +1,6 @@
#!/bin/bash
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
./install_kicad.sh
../common/install_kicad_from_sources

View File

@ -14,8 +14,10 @@ echo "about to clone $device to $dest_file"
echo "ctrl-c or [enter]"
read
umount $device?
umount $device
sudo umount $device?
sudo umount $device
sudo sync
sudo pv -tpreb $device | dd bs=4M | pixz > $dest_file
sudo sync

26
tools/restore_sdcard Executable file
View 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