Revision 6,
612 bytes
checked in by ajaworski, 13 years ago
(diff) |
Added scripts from tile machine
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | if [ -z "$1" ] |
---|
3 | then |
---|
4 | echo "Need to pass argument 'trunk', 'testing' or 'experimental'" |
---|
5 | exit |
---|
6 | fi |
---|
7 | |
---|
8 | if [ "$1" != "trunk" -a "$1" != "testing" -a "$1" != "experimental" ] |
---|
9 | then |
---|
10 | echo "Need to pass argument 'trunk', 'testing' or 'experimental'" |
---|
11 | exit |
---|
12 | fi |
---|
13 | |
---|
14 | echo "Recompiling SAGE [$1] on localhost" |
---|
15 | |
---|
16 | cd ~/SAGE/$1 |
---|
17 | make -j 2 |
---|
18 | |
---|
19 | if [ "$?" != 0 ] |
---|
20 | then |
---|
21 | echo "Error while compiling" |
---|
22 | exit |
---|
23 | fi |
---|
24 | |
---|
25 | if [ -e /usr/local/sage ] |
---|
26 | then |
---|
27 | echo "Removing sage" |
---|
28 | sudo rm -r /usr/local/sage |
---|
29 | fi |
---|
30 | |
---|
31 | echo "Installing SAGE" |
---|
32 | sudo make install |
---|
33 | cd /usr/local/sage |
---|
34 | sudo ln -s lib64 lib |
---|
Note: See
TracBrowser
for help on using the repository browser.