initial version of build file for osx

This commit is contained in:
benfry
2002-07-25 20:16:11 +00:00
parent 92ff2f3fdf
commit 8d331bb957

68
processing/build/macosx/make.sh Executable file
View File

@@ -0,0 +1,68 @@
#!/bin/sh
### -- SETUP WORK DIR -------------------------------------------
if test -d work
then
else
echo Setting up directories to build P5 on windows...
mkdir work
# unzip -q -d work jre.zip
cp -r ../shared/lib work/
rm -rf work/lib/CVS
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/run.bat work/
echo
fi
### -- START BUILDING -------------------------------------------
# move to 'app' directory
cd ../..
#PLATFORM_CLASSPATH=java/lib/rt.jar:java/lib/ext/comm.jar
### -- BUILD BAGEL ----------------------------------------------
cd ..
cd bagel
MACOSX_CLASSPATH=poo
CLASSPATH=$MACOSX_CLASSPATH
### --- make version with serial for the application
echo Building bagel with serial support
perl make.pl SERIAL
cp classes/*.class ../app/build/macosx/work/classes/
### --- make version without serial for applet exporting
echo Building bagel for export
perl make.pl
cp classes/*.class ../app/build/macosx/work/lib/export/
cd ..
cd app
### -- BUILD PDE ------------------------------------------------
echo Building PDE for JDK 1.3
CLASSPATH=build/macosx/work/classes:build/macosx/work/lib/kjc.jar:build/macosx/work/lib/oro.jar:$MACOSX_CLASSPATH
perl buzz.pl "jikes +D -classpath $CLASSPATH -d build/windows/work/classes" -dJDK13 *.java kjc/*.java
cd build/windows/work/classes
rm -f ../lib/pde.jar
zip -0q ../lib/pde.jar *.class
cd ../..