-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap_linux.sh
60 lines (47 loc) · 1.47 KB
/
bootstrap_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
sudo apt-get update
sudo apt-get install -y openssh-client git wget python2.7-dev cmake g++-4.7
if [ -f ~/.ssh/id_rsa.pub ];
then
echo "ssh key found"
else
ssh-keygen -q -t rsa -N "" -f ~/.ssh/id_rsa
fi
echo "======================================================"
echo "User action needed"
echo " Go to https://gitlab.mech.kuleuven.be/profile"
echo " click on the 'SSH Keys' tab"
echo " Paste the following in the 'Key' field: "
echo ""
cat ~/.ssh/id_rsa.pub
echo ""
echo " Give it some Title and click 'Add key'"
echo " Press enter after doing this"
read ANSWER
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd &
echo "======================================================"
echo "Press enter after visiting the Dropbox link"
read ANSWER
ssh-keyscan gitlab.mech.kuleuven.be >> ~/.ssh/known_hosts
git clone git@gitlab.mech.kuleuven.be:meco-software/cpp_splines.git
cd cpp_splines
mkdir build-matlab
mkdir build-python
cat <<EOF > build-python/run.sh
rm CMakeCache.txt
export BUILD_LANG=python27
source ../env.sh
export CC="gcc-4.7"
export CXX="g++-4.7"
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_MATLAB=OFF ..
EOF
cat <<EOF > build-matlab/run.sh
rm CMakeCache.txt
export BUILD_LANG=matlabR2014a
source ../env.sh
export MATLABRELEASE=R2014a
export MATLAB_ROOT=/matlab/
export CC="gcc-4.7"
export CXX="g++-4.7"
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_PYTHON=OFF -DWITH_MATLAB=ON ..
EOF