mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
72 lines
1.6 KiB
Bash
Executable File
72 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
### -- SETUP WORK DIR -------------------------------------------
|
|
|
|
if test -d work
|
|
then
|
|
else
|
|
echo Setting up directories to build for linux...
|
|
cp -r ../shared work
|
|
tar --extract --file=jre.tgz --ungzip --directory=work
|
|
|
|
mkdir work/lib/export
|
|
mkdir work/lib/build
|
|
mkdir work/classes
|
|
|
|
cp dist/lib/pde.properties_linux work/lib/
|
|
|
|
echo
|
|
fi
|
|
|
|
|
|
### -- START BUILDING -------------------------------------------
|
|
|
|
# move to 'app' directory
|
|
cd ../..
|
|
|
|
|
|
### -- 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
|
|
|
|
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/linux/work/classes/
|
|
|
|
### --- make version without serial for applet exporting
|
|
echo Building bagel for export
|
|
perl make.pl
|
|
cp classes/*.class ../app/build/linux/work/lib/export/
|
|
|
|
cd ..
|
|
cd app
|
|
|
|
|
|
### -- BUILD PDE ------------------------------------------------
|
|
|
|
echo Building PDE for JDK 1.3
|
|
|
|
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
|
|
|
|
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 ../..
|
|
|