summaryrefslogtreecommitdiff
path: root/chapter33/simple.sh
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-11-17 08:19:48 -0800
committerCliff Click <cliffc@acm.org>2026-11-17 08:19:48 -0800
commitb62b00d6c5953c4a2f3b60c09e50e776f901bac6 (patch)
tree3f3ef04fe8803c8de7dd45c4cf5e67f5fd599d11 /chapter33/simple.sh
parentebdb2c71237506d67cfa8f3bb459b41902840481 (diff)
downloadSimple-b62b00d6c5953c4a2f3b60c09e50e776f901bac6.tar.gz
Simple-b62b00d6c5953c4a2f3b60c09e50e776f901bac6.zip
First cut ch33
Diffstat (limited to 'chapter33/simple.sh')
-rw-r--r--chapter33/simple.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter33/simple.sh b/chapter33/simple.sh
new file mode 100644
index 00000000..32552ecc
--- /dev/null
+++ b/chapter33/simple.sh
@@ -0,0 +1,12 @@
+#! /bin/sh
+here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
+release="$here/build/release"
+jar="$release/Simple.jar"
+
+if command -v cygpath >/dev/null 2>&1; then
+ release=$(cygpath -w "$release")
+ jar=$(cygpath -w "$jar")
+fi
+
+export SIMPLE_HOME="${SIMPLE_HOME:-$release}"
+exec java -jar "$jar" "$@"