Improve 2000/tomx/try scripts
This commit is contained in:
1 parent
f7ecec003f
commit
ea4d465a54
2 files changed
+49
-22
No files matched your search
+21
-9
@@ -16,21 +16,33 @@ make CC="$CC" alt >/dev/null || exit 1
|
|||||||
clear
|
clear
|
||||||
|
|
||||||
echo "Using tomx.alt.c to compile mkentry.c directly:" 1>&2
|
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
|
chmod +x tomx.alt.c
|
||||||
echo "$ rm -f mkentry" 1>&2
|
echo 1>&2
|
||||||
rm -f mkentry
|
|
||||||
echo "$ ./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: ./tomx.alt.c: "
|
||||||
|
echo 1>&2
|
||||||
./tomx.alt.c
|
./tomx.alt.c
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
echo "Using tomx.alt.c as a Makefile to compile mkentry.c:" 1>&2
|
echo "Using tomx.alt.c as a Makefile to compile mkentry.c:" 1>&2
|
||||||
echo "$ rm -f mkentry"
|
read -r -n 1 -p "Press any key to run: rm -vf mkentry: "
|
||||||
rm mkentry
|
echo 1>&2
|
||||||
echo "$ make -f tomx.alt.c" 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
|
make -f tomx.alt.c
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
echo "Running mkentry via tomx.alt:" 1>&2
|
read -r -n 1 -p "Press any key to run: ./tomx.alt: "
|
||||||
echo "$ ./tomx.alt" 1>&2
|
echo 1>&2
|
||||||
./tomx.alt
|
./tomx.alt
|
||||||
|
echo 1>&2
|
||||||
+28
-13
@@ -15,28 +15,43 @@ make CC="$CC" all >/dev/null || exit 1
|
|||||||
# clear screen after compilation so that only the entry is shown
|
# clear screen after compilation so that only the entry is shown
|
||||||
clear
|
clear
|
||||||
|
|
||||||
echo "Running tomx:" 1>&2
|
read -r -n 1 -p "Press any key to run: ./tomx: "
|
||||||
echo "$ ./tomx" 1>&2
|
echo 1>&2
|
||||||
./tomx
|
./tomx
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
echo "Using source code to compile tomx.c: " 1>&2
|
echo "Using source code to compile tomx.c: " 1>&2
|
||||||
echo "$ rm -f tomx" 1>&2
|
read -r -n 1 -p "Press any key to run: rm -vf tomx: "
|
||||||
rm -f tomx
|
echo 1>&2
|
||||||
echo "$ chmod +x tomx.c" 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
|
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
|
./tomx.c
|
||||||
echo "Running tomx again:" 1>&2
|
echo 1>&2
|
||||||
echo "$ ./tomx" 1>&2
|
read -r -n 1 -p "Press any key to run: ./tomx (a second time): "
|
||||||
|
echo 1>&2
|
||||||
./tomx
|
./tomx
|
||||||
|
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
echo "Using tomx.c as a Makefile:" 1>&2
|
echo "Using tomx.c as a Makefile:" 1>&2
|
||||||
echo "$ rm -f tomx" 1>&2
|
read -r -n 1 -p "Press any key to run: rm -vf tomx: "
|
||||||
rm -f tomx
|
echo 1>&2
|
||||||
echo "$ make -f tomx.c" 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
|
make -f tomx.c
|
||||||
echo "Running tomx again:" 1>&2
|
echo 1>&2
|
||||||
echo "$ ./tomx"
|
|
||||||
|
read -r -n 1 -p "Press any key to run: ./tomx (a third time): "
|
||||||
|
echo 1>&2
|
||||||
./tomx
|
./tomx
|
||||||
|
echo 1>&2
|
||||||
Reference in new issue
Block a user