Rename 2019/karns/demo.sh try.sh

It was already documented as such (in the thanks file) but it was still
the old name (demo.sh). The README.md had demo.sh still but this has
been updated as it's all for the try section.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-14 11:18:51 -08:00
1 parent 43f4b68245
commit 396f92f9b0
3 files changed
+15 -6

No files matched your search

+3 -3
View File
@@ -114,7 +114,7 @@ PROG= prog
#
OBJ= ${PROG}.o
CSRC= ${PROG}.o
DATA= maze demo.sh
DATA= maze try.sh
TARGET= ${PROG}
#
ALT_OBJ=
@@ -141,8 +141,8 @@ ${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
${LN} -sf ${PROG} tbfs
test: prog
${CAT} prog.c | ./prog
test: ${PROG}
./${PROG} < ${PROG}.c
# alternative executable
+1 -1
View File
@@ -26,7 +26,7 @@ The last two can be done in a sequence, first showing the respective files at
the terminal, like:
```sh
./demo.sh
./try.sh
```
+11 -2
View File
@@ -5,8 +5,17 @@
# Doesn't run the program on README.md as it's longer and slower.
#
# make prog first and exit if failure
make || exit
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
# this way allows us to have the user specify a different compiler in an easy
# way.
if [[ -z "$CC" ]]; then
CC="cc"
fi
make CC="$CC" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
# display prog.c to the user
echo "$ cat prog.c"