#!/bin/bash
#
# This script loads Seaside 2.8 into GemStone
#
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/installSeaside2.8.topaz
input $GEMSTONE/seaside/topaz/installFastCGI.topaz
input $GEMSTONE/seaside/topaz/installHyper.topaz
input $GEMSTONE/seaside/topaz/installOmniBrowser.topaz
input $GEMSTONE/seaside/topaz/installMagritte.topaz
input $GEMSTONE/seaside/topaz/installPier.topaz
input $GEMSTONE/seaside/topaz/installSqueakSource2.topaz
input $GEMSTONE/seaside/topaz/installGLASS.topaz

logout
errorCount

EOF

