source: trunk/gsdl3/Header@ 6526

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