summarylogtreecommitdiffstats
path: root/abchr
blob: b7cca323f3eb65ecd86133a5353b2039d874e1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -eu

# auto cleanup
at_exit() {
  set +u
  rm -Rf "$TMP_DIR"
  set -u
}
trap at_exit EXIT

readonly TMP_DIR=$(mktemp -d /tmp/$(basename -- $0).XXXXXXXXXX)

ln -s {/usr/share/abchr,"$TMP_DIR"}/clicodecs.cfg

pushd $TMP_DIR > /dev/null

/usr/bin/java -jar /usr/share/java/abchr/abchr.jar

popd > /dev/null