aboutsummaryrefslogtreecommitdiffstats
path: root/games/java-games-suite/files/java-games-suite.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'games/java-games-suite/files/java-games-suite.sh.in')
-rw-r--r--games/java-games-suite/files/java-games-suite.sh.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/java-games-suite/files/java-games-suite.sh.in b/games/java-games-suite/files/java-games-suite.sh.in
new file mode 100644
index 000000000000..b40581e68a3a
--- /dev/null
+++ b/games/java-games-suite/files/java-games-suite.sh.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+case "$1" in
+ mastermind)
+ JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/MM.jar"
+ ;;
+ reversi)
+ JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/reversi.jar"
+ ;;
+ mine)
+ JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/Mine.jar"
+ ;;
+ tetris)
+ JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/Tetris.jar"
+ ;;
+ rt)
+ JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/RT.jar"
+ ;;
+ number)
+ JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/Number.jar"
+ ;;
+ *)
+ echo $"Usage: $0 {mastermind|reversi|mine|tetris|rt|number}"
+ exit 1
+esac