Make 2019/karns/demo.sh make prog
Make the script try compiling the entry first. Exit if failure.
This commit is contained in:
1 parent
4a89ac4fe2
commit
4581f98ca2
1 file changed
+3
@@ -5,6 +5,9 @@
|
|||||||
# Doesn't run the program on README.md as it's longer and slower.
|
# Doesn't run the program on README.md as it's longer and slower.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# make prog first and exit if failure
|
||||||
|
make || exit
|
||||||
|
|
||||||
# display prog.c to the user
|
# display prog.c to the user
|
||||||
echo "$ cat prog.c"
|
echo "$ cat prog.c"
|
||||||
cat prog.c
|
cat prog.c
|
||||||
|
|||||||
Reference in new issue
Block a user