From 35d0014cdd31da050c5a9f945d259ebb52c0a97d Mon Sep 17 00:00:00 2001 From: benfry Date: Thu, 25 Jul 2002 19:51:59 +0000 Subject: [PATCH] new build hierarchy for linux --- build/linux/.cvsignore | 2 ++ build/linux/dist/.cvsignore | 0 build/linux/make.sh | 63 +++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 build/linux/.cvsignore create mode 100644 build/linux/dist/.cvsignore create mode 100755 build/linux/make.sh diff --git a/build/linux/.cvsignore b/build/linux/.cvsignore new file mode 100644 index 000000000..775565e7a --- /dev/null +++ b/build/linux/.cvsignore @@ -0,0 +1,2 @@ +work + diff --git a/build/linux/dist/.cvsignore b/build/linux/dist/.cvsignore new file mode 100644 index 000000000..e69de29bb diff --git a/build/linux/make.sh b/build/linux/make.sh new file mode 100755 index 000000000..d6a0de673 --- /dev/null +++ b/build/linux/make.sh @@ -0,0 +1,63 @@ +#!/bin/sh + + +### -- SETUP WORK DIR ------------------------------------------- + +if test -d work +then + +else + mkdir work + tar --extract --verbose --file=jre.tgz --ungzip --directory=work + cp -r ../shared/lib 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 +fi + + +### -- START BUILDING ------------------------------------------- + +# move to 'app' directory +cd ../.. + + +PLATFORM_CLASSPATH=java/lib/rt.jar:java/lib/ext/comm.jar + + +### -- BUILD BAGEL ---------------------------------------------- +cd .. +cd bagel + +# hmm? +#CLASSPATH=java\lib\ext\comm.jar\;$CLASSPATH + +### --- 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/ + +### --- make version without serial for applet exporting +echo Building bagel for export +perl make.pl +cp classes/*.class ../app/build/windows/work/lib/export/ + +cd .. +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 + +cd classes +rm -f ../lib/pde.jar +zip -0q ../lib/pde.jar *.class +cd .. +