#!/bin/sh
#
# Ganymede Server build script
#
# Release: $Name: ganymede_001000011 $
# Version: $Revision: 1.7 $
# Date: $Date: 1999/05/26 18:28:12 $
#
############################################################

echo "Compiling Ganymede Server"

currentdir=`pwd`

# Change to the directory where this build script is

prog=$0
builddir=`echo $prog|sed 's%/[^/][^/]*$%%'`
test "x$builddir" = "x$builddir" && builddir=.
cd $builddir

# Load configuration information

. ./config.sh

# And do the build

umask 022;

CLASSPATH=$CLASSDIR:$CLASSPATH; export CLASSPATH
$JAVAC -J-mx128m -deprecation -d $TARGETDIR *.java

# Have to build the rmi stubs and skeletons

./buildrmi

# Return to our last directory

cd $currentdir

echo "Done compiling Ganymede server"
