summaryrefslogtreecommitdiffstats
path: root/tools/jackpotc/bttf
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-06-11 00:13:03 +0200
committerSven Gothel <[email protected]>2010-06-11 00:13:03 +0200
commit856a6e9ff524692bb4e2ac7b2f754bc7fee5f849 (patch)
tree2c7f1a0d83daa51fd8bb41021f0e0f8db8fd68d4 /tools/jackpotc/bttf
parent302f183c4a659be9cedb5b6993ff78e7379d9cad (diff)
parenta2b89550a73adb8e103d13daf48abc2e37fcdedf (diff)
Merge branch 'master' of github.com:mbien/jogl
Diffstat (limited to 'tools/jackpotc/bttf')
-rwxr-xr-xtools/jackpotc/bttf16
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/jackpotc/bttf b/tools/jackpotc/bttf
index b1aed8c72..ba384702f 100755
--- a/tools/jackpotc/bttf
+++ b/tools/jackpotc/bttf
@@ -1,12 +1,20 @@
#!/bin/bash
-SRC="./test/oldgears/src/"
-LIBS="./test/oldgears/lib/old/jogl.jar:./test/oldgears/lib/new/jogl.all.jar:./test/oldgears/lib/new/jogl.awt.jar"
-OUTPUT="./test/oldgears/build"
+PROJECT="./test/oldgears"
+SRC="$PROJECT/src"
+GENSRC="$PROJECT/gensrc"
+LIBS="$PROJECT/lib/old/jogl.jar:$PROJECT/lib/new/jogl.all.jar:$PROJECT/lib/new/jogl.awt.jar"
+OUTPUT="$PROJECT/build"
FILESET=`find $SRC -type f -name "*.java"`
echo "Back to the Future"
+echo "transforming files: $FILESET"
mkdir $OUTPUT
./lib/jackpotc -sourcepath $SRC -cp $LIBS -d $OUTPUT -Ajackpot30_extra_hints=./jogl1Tojogl2.hint $FILESET
echo "patching..."
-patch -o ${OUTPUT}/Patched.java $FILESET ${OUTPUT}/META-INF/upgrade/upgrade.diff
+mkdir "$GENSRC"
+mkdir "$GENSRC/jogl2/"
+mkdir "$GENSRC/jogl2/gears/"
+patch -o $GENSRC/jogl2/gears/Gears.java $FILESET ${OUTPUT}/META-INF/upgrade/upgrade.diff
+
+echo "done"