diff --git a/1998/dlowe/try.sh b/1998/dlowe/try.sh new file mode 100755 index 000000000..5dc390a8d --- /dev/null +++ b/1998/dlowe/try.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +# +# try.sh - try out 1998/dlowe pootifier +# + +make all || exit 1 + +CAT="$(type -P cat)" +MAN="$(type -P man)" +COL="$(type -P col)" + +if [[ -z "$CAT" || ! -e "$CAT" ]]; then + echo "$0: no cat found" 1>&2 + exit 1 +elif [[ -z "$COL" || ! -e "$COL" ]]; then + echo "$0: col not found" 1>&2 + exit 1 +elif [[ -z "$MAN" || ! -e "$MAN" ]]; then + echo "$0: can't execute man" 1>&2 + exit 1 +fi + +rm -f make.1 +read -r -n 1 -p "Press any key to pootify make(1): " +"$MAN" make | "$COL" -b | ./dlowe > make.1 +"$MAN" ./make.1 + +read -r -n 1 -p "Press any key to pootify dlowe.c: " +./dlowe < dlowe.c