Merge pull request #1451 from xexyl/dlowe98try

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-11-17 10:29:56 -07:00
commit 46d58fdd14
1 file changed
+29
+29
View File
@@ -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