Further improvements to 2000/tomx/try scripts
Updated .gitignore as the scripts now generate two new files.
This commit is contained in:
1 parent
0b749d500b
commit
1c81a68aa9
3 files changed
+37
-20
No files matched your search
+9
-9
@@ -15,15 +15,14 @@ make CC="$CC" all >/dev/null || exit 1
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./tomx: "
|
||||
read -r -n 1 -p "Press any key to run: ./tomx (compiled from tomx.c): "
|
||||
echo 1>&2
|
||||
./tomx
|
||||
echo 1>&2
|
||||
|
||||
echo "Using source code to compile tomx.c: " 1>&2
|
||||
read -r -n 1 -p "Press any key to run: rm -vf tomx: "
|
||||
read -r -n 1 -p "Press any key to run: rm -v -f tomx: "
|
||||
echo 1>&2
|
||||
rm -vf tomx
|
||||
rm -v -f tomx
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: chmod +x tomx.c: "
|
||||
@@ -31,27 +30,28 @@ echo 1>&2
|
||||
chmod +x tomx.c
|
||||
echo 1>&2
|
||||
|
||||
echo "Using source code to compile tomx.c: " 1>&2
|
||||
read -r -n 1 -p "Press any key to run: ./tomx.c: "
|
||||
echo 1>&2
|
||||
./tomx.c
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to run: ./tomx (a second time): "
|
||||
read -r -n 1 -p "Press any key to run: ./tomx (compiled by tomx.c as an executable itself): "
|
||||
echo 1>&2
|
||||
./tomx
|
||||
|
||||
echo 1>&2
|
||||
echo "Using tomx.c as a Makefile:" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: rm -vf tomx: "
|
||||
read -r -n 1 -p "Press any key to run: rm -v -f tomx: "
|
||||
echo 1>&2
|
||||
rm -vf tomx
|
||||
rm -v -f tomx
|
||||
echo 1>&2
|
||||
|
||||
echo "Using tomx.c as a Makefile:" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: make -f tomx.c: "
|
||||
echo 1>&2
|
||||
make -f tomx.c
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./tomx (a third time): "
|
||||
read -r -n 1 -p "Press any key to run: ./tomx (built from tomx.c as a Makefile): "
|
||||
echo 1>&2
|
||||
./tomx
|
||||
echo 1>&2
|
||||
Reference in new issue
Block a user