#!/bin/sh
echo ""
echo @NOTICE@
echo ""

# create a temp directory to extract to.
#export WRKDIR=`mktemp -d /tmp/selfextract.XXXXXX`
export WORK_DIR="@WORK_DIR@"
mkdir $WORK_DIR

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 | tar xz -C $WORK_DIR

# execute the installation script

#PREV=`pwd`
#cd $WORK_DIR
#./install.sh

# delete the temp files
#cd $PREV
#rm -rf $WORK_DIR

exit 0

__ARCHIVE_FOLLOWS__
