#!/bin/bash
#
# This script loads Seaside 2.6 into GemStone.
# Note that Seaside 2.6 is required for loading SqueakSource
#
if [ -s $GEMSTONE/seaside/etc/gemstone.secret ]; then
    . $GEMSTONE/seaside/etc/gemstone.secret
else
    echo 'Missing password file $GEMSTONE/seaside/etc/gemstone.secret'
    exit 1
fi

$GEMSTONE/bin/topaz -l -T200000 <<EOF

set user DataCurator pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME
login
errorCount

input $GEMSTONE/seaside/topaz/installMonticello.topaz
input $GEMSTONE/seaside/topaz/installSeaside.topaz
input $GEMSTONE/seaside/topaz/installFastCGI.topaz
input $GEMSTONE/seaside/topaz/installHyper.topaz
input $GEMSTONE/seaside/topaz/installOmniBrowser.topaz

# Uncomment the following line if you want SqueakSource to be
#  installed.
# input $GEMSTONE/seaside/topaz/installSqueakSource.topaz

logout
errorCount

EOF

