diff options
| author | Cliff Click <cliffc@acm.org> | 2026-11-17 08:19:48 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-17 08:19:48 -0800 |
| commit | b62b00d6c5953c4a2f3b60c09e50e776f901bac6 (patch) | |
| tree | 3f3ef04fe8803c8de7dd45c4cf5e67f5fd599d11 /chapter33/simple.sh | |
| parent | ebdb2c71237506d67cfa8f3bb459b41902840481 (diff) | |
| download | Simple-b62b00d6c5953c4a2f3b60c09e50e776f901bac6.tar.gz Simple-b62b00d6c5953c4a2f3b60c09e50e776f901bac6.zip | |
First cut ch33
Diffstat (limited to 'chapter33/simple.sh')
| -rw-r--r-- | chapter33/simple.sh | 12 |
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" "$@" |
