Last change
on this file since 6526 was 6526, checked in by kjdon, 20 years ago |
a header for the linux distribution - cat to teh front of the gsdl3.tgz file
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
965 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | installdir=`pwd`
|
---|
4 |
|
---|
5 | echo ""
|
---|
6 | echo "***** Greenstone 3 (v0.1a) - Self Installer *****"
|
---|
7 | echo ""
|
---|
8 | echo "This program will install Greenstone 3 in a folder"
|
---|
9 | echo "called gsdl3."
|
---|
10 | echo ""
|
---|
11 |
|
---|
12 | # Prompt for the directory to install GSDL3 in
|
---|
13 | echo "Please enter the path to the folder you want to"
|
---|
14 | echo "install Greenstone 3 in, or press enter to accept"
|
---|
15 | echo "the default [$installdir]."
|
---|
16 | printf "%s" "> "
|
---|
17 | read ans
|
---|
18 | if [ "$ans" != "" ] ; then
|
---|
19 | installdir="$ans"
|
---|
20 | fi
|
---|
21 | # Wait message
|
---|
22 | echo ""
|
---|
23 | echo "Extracting Greenstone 3 to: $installdir"
|
---|
24 | echo "This may take a moment. Please wait..."
|
---|
25 | echo ""
|
---|
26 | # Figure out where the TGZ portion starts
|
---|
27 | SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0`
|
---|
28 |
|
---|
29 | # Take the TGZ portion of this file and pipe it to tar.
|
---|
30 | tail +$SKIP $0 | gzip -d -c | tar -xC $installdir -f -
|
---|
31 |
|
---|
32 | # execute the installation script
|
---|
33 |
|
---|
34 | cd $installdir/gsdl3/
|
---|
35 | source ./gs3-setup.sh
|
---|
36 | chmod u+x gs3-finalise.sh
|
---|
37 | sh ./gs3-finalise.sh
|
---|
38 |
|
---|
39 | exit 0
|
---|
40 |
|
---|
41 | __ARCHIVE_FOLLOWS__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.