File: sensible-zcode-interpreter

package info (click to toggle)
int-fiction 0.5
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 32 kB
  • sloc: makefile: 78; sh: 10
file content (13 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash

shopt -s execfail

exec ${ZIP_INTERPRETER:-${ZCODE_INTERPRETER:-/usr/games/zcode-interpreter}} "$@"
if test "${DISPLAY+set}" = set; then
  exec xzip "$@"
  exec /usr/games/xzip "$@"
fi
exec frotz "$@"
exec /usr/games/frotz "$@"
echo -e "Couldn't find a Z-code interpreter!" 2>&1
echo -e "Set the \$ZCODE_INTERPRETER environment variable to your preferred interpreter." 2>&1