Add missing 1998/dlowe/try.sh

This commit is contained in:
Cody Boone Ferguson committed 2023-11-17 01:55:13 -08:00
1 parent 47bfe3d43a
commit 578d96a00e
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