Improve 2000/tomx/try scripts

This commit is contained in:
Cody Boone Ferguson committed 2024-01-19 09:32:49 -08:00
1 parent f7ecec003f
commit ea4d465a54
2 files changed
+49 -22

No files matched your search

+28 -13
View File
@@ -15,28 +15,43 @@ make CC="$CC" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "Running tomx:" 1>&2
echo "$ ./tomx" 1>&2
read -r -n 1 -p "Press any key to run: ./tomx: "
echo 1>&2
./tomx
echo 1>&2
echo "Using source code to compile tomx.c: " 1>&2
echo "$ rm -f tomx" 1>&2
rm -f tomx
echo "$ chmod +x tomx.c" 1>&2
read -r -n 1 -p "Press any key to run: rm -vf tomx: "
echo 1>&2
rm -vf tomx
echo 1>&2
read -r -n 1 -p "Press any key to run: chmod +x tomx.c: "
echo 1>&2
chmod +x tomx.c
echo "$ ./tomx.c" 1>&2
echo 1>&2
read -r -n 1 -p "Press any key to run: ./tomx.c: "
echo 1>&2
./tomx.c
echo "Running tomx again:" 1>&2
echo "$ ./tomx" 1>&2
echo 1>&2
read -r -n 1 -p "Press any key to run: ./tomx (a second time): "
echo 1>&2
./tomx
echo 1>&2
echo "Using tomx.c as a Makefile:" 1>&2
echo "$ rm -f tomx" 1>&2
rm -f tomx
echo "$ make -f tomx.c" 1>&2
read -r -n 1 -p "Press any key to run: rm -vf tomx: "
echo 1>&2
rm -vf tomx
echo 1>&2
read -r -n 1 -p "Press any key to run: make -f tomx.c: "
echo 1>&2
make -f tomx.c
echo "Running tomx again:" 1>&2
echo "$ ./tomx"
echo 1>&2
read -r -n 1 -p "Press any key to run: ./tomx (a third time): "
echo 1>&2
./tomx
echo 1>&2