Add 1998/dlowe/try.alt.sh, add missing subsections

This commit is contained in:
Cody Boone Ferguson committed 2023-12-17 12:37:23 -08:00
1 parent 1a26232be0
commit d1489ed011
4 files changed
+60 -3

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
#
# try.sh - try out 1998/dlowe pootifier alt code
#
make everything || 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.alt > make.1
"$MAN" ./make.1
read -r -n 1 -p "Press any key to pootify dlowe.c: "
echo 1>&2
./dlowe.alt < dlowe.c
echo 1>&2
read -r -n 1 -p "Press any key to pootify dlowe.alt.c: "
echo 1>&2
./dlowe.alt < dlowe.alt.c
echo 1>&2