summaryrefslogtreecommitdiff
path: root/chapter28b/simple.sh
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-10-24 15:23:20 -0700
committerCliff Click <cliffc@acm.org>2026-10-24 15:23:20 -0700
commitf49b184a093ab5f653ac36ccc4939c45515a2f4b (patch)
tree36b7b0b688a6b03ceb1412fc45f79f32e7540002 /chapter28b/simple.sh
parenta216a23bbd4d6e05a40d86ec8e76c038e945f3ba (diff)
downloadSimple-f49b184a093ab5f653ac36ccc4939c45515a2f4b.tar.gz
Simple-f49b184a093ab5f653ac36ccc4939c45515a2f4b.zip
Move combined chapter 25 baseline to chapter 28b
Diffstat (limited to 'chapter28b/simple.sh')
-rw-r--r--chapter28b/simple.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter28b/simple.sh b/chapter28b/simple.sh
new file mode 100644
index 00000000..32552ecc
--- /dev/null
+++ b/chapter28b/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" "$@"