Improve 1996/westley/try scripts

This commit is contained in:
Cody Boone Ferguson committed 2024-01-19 06:00:43 -08:00
1 parent 6344fd5584
commit 31793b035c
3 files changed
+25 -15

No files matched your search

+14 -5
View File
@@ -15,13 +15,22 @@ make CC="$CC" everything >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "Showing alt grandfather clock:" 1>&2
echo "WARNING: this is likely to segfault after showing the output." 1>&2
echo "It might also show one or more environmental variables. Use" 1>&2
echo "try.sh if you want to see the fixed version." 1>&2
echo 1>&2
read -r -n 1 -p "Press any key to show alt grandfather clock: "
echo 1>&2
WESTLEY=./westley.alt ./clock1.sh
read -r -n 1 -p "Press any key to continue: " 1>&2
echo 1>&2
echo "Showing alt mantle clock that runs backwards:" 1>&2
read -r -n 1 -p "Press any key to show alt mantle clock that runs backwards: "
echo 1>&2
WESTLEY=./westley.alt ./clock2.sh
read -r -n 1 -p "Press any key to continue: " 1>&2
echo 1>&2
echo "Showing alt linear style clock:" 1>&2
read -r -n 1 -p "Press any key to show alt linear style clock: "
echo 1>&2
WESTLEY=./westley.alt ./clock3.sh
echo 1>&2
+9 -5
View File
@@ -15,13 +15,17 @@ make CC="$CC" everything >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "Showing grandfather clock:" 1>&2
read -r -n 1 -p "Press any key to show grandfather clock: "
echo 1>&2
WESTLEY=./westley ./clock1.sh
read -r -n 1 -p "Press any key to continue: " 1>&2
echo 1>&2
echo "Showing mantle clock that runs backwards:" 1>&2
read -r -n 1 -p "Press any key to show alt mantle clock that runs backwards: "
echo 1>&2
WESTLEY=./westley ./clock2.sh
read -r -n 1 -p "Press any key to continue: " 1>&2
echo 1>&2
echo "Showing linear style clock:" 1>&2
read -r -n 1 -p "Press any key to show alt linear style clock: "
echo 1>&2
WESTLEY=./westley ./clock3.sh
echo 1>&2