#!/bin/sh echo "" echo "Greenstone Librarian Interface v2.3(beta) - starting installation... please wait" echo "" # Figure out where the TGZ portion starts SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0` # Take the TGZ portion of this file and pipe it to tar. tail +$SKIP $0 | gzip -d -c | tar -xf - # execute the installation script cd ./gli/ sh ./Install.sh exit 0 __ARCHIVE_FOLLOWS__