moth/cmd/transpile/testdata/3/mkpuzzle

23 lines
317 B
Plaintext
Raw Normal View History

2020-08-31 16:37:51 -06:00
#! /bin/sh
case $1 in
"")
cat <<'EOT'
{
"Answers": ["answer"],
"Pre": {
"Authors": "neale",
"Body": "I am a generated puzzle."
}
}
EOT
;;
moo.txt)
echo "Moo."
;;
*)
echo "Error: no such file: $1" 1>&2
exit 1
;;
esac