2014-07-25 19:56:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-02-09 12:47:00 +00:00
|
|
|
set -e
|
|
|
|
|
2014-07-25 19:56:01 +01:00
|
|
|
bzr launchpad-login "saipeloan"
|
|
|
|
bzr whoami "Cyryl Plotnicki-Chudyk <bzr@cyplo.net>"
|
|
|
|
|
|
|
|
mkdir -p ~/build/kicad
|
|
|
|
cd ~/build/kicad
|
|
|
|
|
|
|
|
echo "add the following pubkey to launchpad:"
|
|
|
|
cat ~/.ssh/id_rsa.pub
|
|
|
|
echo "press [enter] when the key is added"
|
|
|
|
read
|
|
|
|
echo "checking out sources..."
|
|
|
|
|
|
|
|
bzr checkout lp:kicad kicad.bzr
|
|
|
|
cd kicad.bzr
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-02-09 12:47:00 +00:00
|
|
|
echo "compiling...."
|
2014-07-25 19:56:01 +01:00
|
|
|
cmake -DKICAD_STABLE_VERSION=ON ../
|
|
|
|
make clean
|
|
|
|
make -j8
|
2015-02-09 12:47:00 +00:00
|
|
|
echo "installing..."
|
2014-07-25 19:56:01 +01:00
|
|
|
sudo make install
|
|
|
|
|
|
|
|
# install component libraries
|
|
|
|
cd ~/build/kicad
|
2015-02-09 12:47:00 +00:00
|
|
|
echo "checking out libraries..."
|
2014-07-25 19:56:01 +01:00
|
|
|
bzr checkout lp:~kicad-product-committers/kicad/library kicad-library.bzr
|
|
|
|
cd kicad-library.bzr
|
|
|
|
mkdir build
|
|
|
|
cd build/
|
2015-02-09 12:47:00 +00:00
|
|
|
echo "installing libraries"
|
2014-07-25 19:56:01 +01:00
|
|
|
cmake ../
|
|
|
|
sudo make install
|
|
|
|
|