aboutsummaryrefslogtreecommitdiffstats
path: root/tools/jackpotc/bttf
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-08 19:22:00 +0200
committerMichael Bien <[email protected]>2010-06-08 19:22:00 +0200
commit57d3d3f9f9475ae167cd9d33c9450eea66439fd2 (patch)
tree8e54d298484bdd6e1bb8bb0bdae30cc6c8542c87 /tools/jackpotc/bttf
parent9dedeb00e80c4b8e5323abc8ebd226893a791e72 (diff)
continued with jackpot code transformations.
- added buildscript to test transformed results - added more renaming transformations
Diffstat (limited to 'tools/jackpotc/bttf')
-rwxr-xr-xtools/jackpotc/bttf13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/jackpotc/bttf b/tools/jackpotc/bttf
index 4971c9160..ba384702f 100755
--- a/tools/jackpotc/bttf
+++ b/tools/jackpotc/bttf
@@ -1,7 +1,9 @@
#!/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"
@@ -10,6 +12,9 @@ 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"