Last change
on this file since 6686 was 6559, checked in by kjdon, 20 years ago |
removed extraneous spaces
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
961 bytes
|
Rev | Line | |
---|
[6526] | 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
|
---|
[6559] | 13 | echo "Please enter the path to the folder you want to"
|
---|
| 14 | echo "install Greenstone 3 in, or press enter to accept"
|
---|
[6526] | 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.