Revision 329,
750 bytes
checked in by marcus, 12 years ago
(diff) |
r168 | walther | 2011-02-17 17:21:44 +0100 (Do, 17 Feb 2011) | 4 lines
- Added SHM-install.csh installation script (slightly changed).
- Setup preparation via setup.py
- Using gzip compression for better os support.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | echo "" |
---|
4 | echo "Self Extracting Installer for Seismic Handler" |
---|
5 | echo "" |
---|
6 | |
---|
7 | export TMPDIR=`mktemp -d /tmp/selfextract.XXXXXX` |
---|
8 | |
---|
9 | echo "Extracting files to temporary directory ${TMPDIR}..." |
---|
10 | |
---|
11 | ARCHIVE=`awk '/^__ARCHIVE_BELOW__/ {print NR + 1; exit 0; }' $0` |
---|
12 | |
---|
13 | tail -n+$ARCHIVE $0 | base64 -d | tar xz -C $TMPDIR |
---|
14 | |
---|
15 | CDIR=`pwd` |
---|
16 | cd $TMPDIR |
---|
17 | python ./setup/setup.py |
---|
18 | |
---|
19 | result=$? |
---|
20 | |
---|
21 | cd $CDIR |
---|
22 | if [ $result -eq 0 ] ; then |
---|
23 | echo "Installation successful, removing temporary directory..." |
---|
24 | rm -rf $TMPDIR |
---|
25 | exit 0 |
---|
26 | else |
---|
27 | echo "Installation unsuccessful, keeping temporary directory..." |
---|
28 | echo "" |
---|
29 | echo "You can restart installation procedure by cd'ing into" |
---|
30 | echo $TMPDIR "and running ./setup/setup.py [--debug]" |
---|
31 | exit 1 |
---|
32 | fi |
---|
33 | |
---|
34 | __ARCHIVE_BELOW__ |
---|
Note: See
TracBrowser
for help on using the repository browser.