working on auto-builder

This commit is contained in:
benfry
2002-07-29 05:22:26 +00:00
parent ed34d8cece
commit 3c2f33fdc2
4 changed files with 93 additions and 27 deletions
+25 -18
View File
@@ -5,18 +5,18 @@
if test -d work
then
else
echo Setting up directories to build for linux...
mkdir work
tar --extract --verbose --file=jre.tgz --ungzip --directory=work
cp -r ../shared/lib work/
cp -r ../shared work
tar --extract --file=jre.tgz --ungzip --directory=work
mkdir work/lib/export
mkdir work/lib/build
cp -r ../shared/sketchbook work/
mkdir work/classes
# this will copy cvs files intact, meaning that changes
# could be made and checked back in.. interesting
cp dist/lib/pde.properties_linux work/lib/
echo
fi
@@ -26,25 +26,31 @@ fi
cd ../..
PLATFORM_CLASSPATH=java/lib/rt.jar:java/lib/ext/comm.jar
### -- BUILD BAGEL ----------------------------------------------
cd ..
# make sure bagel exists, if not, check it out of cvs
if test -d bagel
then
else
echo Doing CVS checkout of bagel...
cvs co bagel
cd bagel
cvs update -P
cd ..
fi
cd bagel
# hmm?
#CLASSPATH=java\lib\ext\comm.jar\;$CLASSPATH
CLASSPATH=../app/build/linux/work/java/lib/rt.jar:../app/build/linux/work/java/lib/ext/comm.jar
### --- make version with serial for the application
echo Building bagel with serial support
perl make.pl SERIAL
cp classes/*.class ../app/build/windows/work/classes/
cp classes/*.class ../app/build/linux/work/classes/
### --- make version without serial for applet exporting
echo Building bagel for export
perl make.pl
cp classes/*.class ../app/build/windows/work/lib/export/
cp classes/*.class ../app/build/linux/work/lib/export/
cd ..
cd app
@@ -53,12 +59,13 @@ cd app
### -- BUILD PDE ------------------------------------------------
echo Building PDE for JDK 1.3
CLASSPATH=classes:lib/kjc.jar:lib/oro.jar:$PLATFORM_CLASSPATH
perl buzz.pl "jikes +D -classpath $CLASSPATH -d classes" -dJDK13 *.java kjc/*.java
CLASSPATH=build/linux/work/classes:build/linux/work/lib/kjc.jar:build/linux/work/lib/oro.jar:build/linux/work/java/lib/rt.jar:build/linux/work/java/lib/ext/comm.jar
cd classes
perl ../bagel/buzz.pl "jikes +D -classpath $CLASSPATH -d build/linux/work/classes" -dJDK13 *.java
cd build/linux/work/classes
rm -f ../lib/pde.jar
zip -0q ../lib/pde.jar *.class
cd ..
cd ../..