aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/compile4
-rwxr-xr-xbin/decompile6
2 files changed, 7 insertions, 3 deletions
diff --git a/bin/compile b/bin/compile
index e5ad288..a6a5997 100755
--- a/bin/compile
+++ b/bin/compile
@@ -2,7 +2,9 @@
main() {
# Replace this with your local location for the Java SE 6 JDK
- local JAVA_HOME=~/Downloads/jdk1.6.0_45
+ local JAVAC=${JAVAC:-~/Downloads/jdk1.6.0_45}
+
+ echo "Using JAVAC=${JAVAC}"
mkdir -p out
diff --git a/bin/decompile b/bin/decompile
index b879ccd..de43598 100755
--- a/bin/decompile
+++ b/bin/decompile
@@ -2,9 +2,11 @@
main() {
# Replace this with your local path to worlds.jar
- local WORLDS_JAR_PATH="${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib"
+ local WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR:-"${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib/worlds.jar"}
- vineflower -ega=true "${WORLDS_JAR_PATH}/worlds.jar" source
+ echo "Using WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR}"
+
+ vineflower -ega=true "${WORLDSPLAYER_JAR}" source
}
main