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

+21 -9
View File
@@ -16,21 +16,33 @@ make CC="$CC" alt >/dev/null || exit 1
clear
echo "Using tomx.alt.c to compile mkentry.c directly:" 1>&2
echo "$ chmod +x tomx.alt.c" 1>&2
read -r -n 1 -p "Press any key to run: chmod +x tomx.alt.c: "
echo 1>&2
chmod +x tomx.alt.c
echo "$ rm -f mkentry" 1>&2
rm -f mkentry
echo "$ ./tomx.alt.c" 1>&2
echo 1>&2
read -r -n 1 -p "Press any key to run: rm -vf mkentry: "
echo 1>&2
rm -vf mkentry
echo 1>&2
read -r -n 1 -p "Press any key to run: ./tomx.alt.c: "
echo 1>&2
./tomx.alt.c
echo 1>&2
echo "Using tomx.alt.c as a Makefile to compile mkentry.c:" 1>&2
echo "$ rm -f mkentry"
rm mkentry
echo "$ make -f tomx.alt.c" 1>&2
read -r -n 1 -p "Press any key to run: rm -vf mkentry: "
echo 1>&2
rm -vf mkentry
echo 1>&2
read -r -n 1 -p "Press any key to run: make -f tomx.alt.c: "
echo 1>&2
make -f tomx.alt.c
echo 1>&2
echo "Running mkentry via tomx.alt:" 1>&2
echo "$ ./tomx.alt" 1>&2
read -r -n 1 -p "Press any key to run: ./tomx.alt: "
echo 1>&2
./tomx.alt
echo 1>&2
+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