Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated build scripts to support altair/gee/moxie, and updated server…
… file to all use the same port.
  • Loading branch information
gatesphere committed May 8, 2012
1 parent be8158e commit 976ae4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build.sh
Expand Up @@ -9,7 +9,9 @@ if [ ! -d $CLASS_DIR ]; then
mkdir $CLASS_DIR
fi

if [[ $OSTYPE == linux-gnu ]] || [[ ${OSTYPE//[0-9.]/} == darwin ]]; then
if [[ $OSTYPE == solaris ]]; then
/opt/jdk1.7.0/bin/javac -cp $CP -sourcepath $SRC_DIR -d $CLASS_DIR $1 $SRC_DIR/*.java && echo "Done."
elif [[ $OSTYPE == linux-gnu ]] || [[ ${OSTYPE//[0-9.]/} == darwin ]]; then
javac -cp $CP -sourcepath $SRC_DIR -d $CLASS_DIR $1 $SRC_DIR/*.java && echo "Done."
elif [[ $OSTYPE == cygwin ]]; then
javac -cp `cygpath -wp $CP` -sourcepath $SRC_DIR -d $CLASS_DIR $1 $SRC_DIR/*.java && echo "Done."
Expand Down
4 changes: 3 additions & 1 deletion run.sh
Expand Up @@ -3,7 +3,9 @@
CP=classes/.:.

echo "Running..."
if [[ $OSTYPE == linux-gnu ]] || [[ ${OSTYPE//[0-9.]/} == darwin ]]; then
if [[ $OSTYPE == solaris ]]; then
/opt/jdk1.7.0/bin/java -cp $CP $1
elif [[ $OSTYPE == linux-gnu ]] || [[ ${OSTYPE//[0-9.]/} == darwin ]]; then
java -cp $CP $1
elif [[ $OSTYPE == cygwin ]]; then
java -cp `cygpath -wp $CP` $1
Expand Down
2 changes: 1 addition & 1 deletion servers.txt
@@ -1,3 +1,3 @@
moxie.oswego.edu 2697
gee.oswego.edu 4321
gee.oswego.edu 2697
altair.oswego.edu 2697

0 comments on commit 976ae4f

Please sign in to comment.