moth/cmd/transpile/testdata/3/mkpuzzle

23 lines
319 B
Plaintext
Raw Normal View History

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