source: trunk/scripts/access/recompilesage @ 6

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
2if [ -z "$1" ]
3then
4        echo "Need to pass argument 'trunk', 'testing' or 'experimental'"
5        exit
6fi
7
8if [ "$1" != "trunk" -a "$1" != "testing" -a "$1" != "experimental" ]
9then
10        echo "Need to pass argument 'trunk', 'testing' or 'experimental'"
11        exit
12fi
13
14echo "Recompiling SAGE [$1] on localhost"
15
16cd ~/SAGE/$1
17make -j 2
18
19if [ "$?" != 0 ]
20then
21        echo "Error while compiling"
22        exit
23fi
24
25if [ -e /usr/local/sage ]
26then
27        echo "Removing sage"
28        sudo rm -r /usr/local/sage
29fi
30
31echo "Installing SAGE"
32sudo make install
33cd /usr/local/sage
34sudo ln -s lib64 lib
Note: See TracBrowser for help on using the repository browser.