diff --git a/1989/vanb/README.md b/1989/vanb/README.md index dafe9a381..516bd6aff 100644 --- a/1989/vanb/README.md +++ b/1989/vanb/README.md @@ -8,8 +8,7 @@ make all ### Try: ```sh -./vanb the rug gary lent -./vanb unix is better than os/2 +./try.sh ``` diff --git a/1989/vanb/try.sh b/1989/vanb/try.sh new file mode 100755 index 000000000..38b74d35b --- /dev/null +++ b/1989/vanb/try.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +# +# try.sh - demonstrate IOCCC winner 1989/vanb +# + +# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it +# this way allows us to have the user specify a different compiler in an easy +# way. +if [[ -z "$CC" ]]; then + CC="cc" +fi + +make CC="$CC" all >/dev/null || exit 1 + +# clear screen after compilation so that only the entry is shown +clear + +read -r -n 1 -p "Press any key to run: ./vanb the rug gary lent (space = next page, q = quit): " +echo 1>&2 +./vanb the rug gary lent | less -rEXF +echo 1>&2 + +read -r -n 1 -p "Press any key to run: ./vanb unix is better than os/2 (space = next page, q = quit): " +echo 1>&2 +./vanb unix is better than os/2 | less -rEXF + + + diff --git a/thanks-for-help.md b/thanks-for-help.md index 4f878f44c..bdd735afb 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -808,6 +808,11 @@ IOCCC [Tetris](https://en.wikipedia.org/wiki/Tetris) working (this of course was not his only reason :-) ) +## [1989/vanb](/1989/vanb/vanb.c) ([README.md](/1989/vanb/README.md])) + +[Cody](#cody) added the [try.sh](/1989/vanb/try.sh) script. + + ## [1989/westley](/1989/westley/westley.c) ([README.md](/1989/westley/README.md])) [Cody](#cody) fixed this for clang, except that two versions generated by the program