Improve 2018/yang/try.sh + fix make clobber
The script now compiles generated1.c and runs it. This might actually be one of the others (some of the generated*.c files have the same effect) but it's perhaps interesting to show nonetheless. This is only done if the spoilers option is selected. Update .gitignore with better globs. Fixed make clobber to remove generated* rather than generated*.c.
This commit is contained in:
1 parent
c30387cce5
commit
f6188dd4d8
3 files changed
+8
-7
No files matched your search
@@ -1,16 +1,12 @@
|
||||
#
|
||||
# sort with: sort -d -u
|
||||
*.dSYM
|
||||
generated1.c
|
||||
generated2.c
|
||||
generated3.c
|
||||
generated4.c
|
||||
generated5.c
|
||||
generated*
|
||||
indent
|
||||
indent.c
|
||||
indent.o
|
||||
left
|
||||
msg[0-9]
|
||||
msg*
|
||||
no_leading_space.txt
|
||||
prog
|
||||
prog.orig
|
||||
|
||||
+1
-1
@@ -324,7 +324,7 @@ clean:
|
||||
clobber: clean
|
||||
${RM} -f ${TARGET} ${ALT_TARGET}
|
||||
${RM} -rf *.dSYM
|
||||
${RM} -f generated*.c msg*
|
||||
${RM} -f generated* msg*
|
||||
@-if [ -e sandwich ]; then \
|
||||
${RM} -f sandwich; \
|
||||
echo 'ate sandwich'; \
|
||||
|
||||
@@ -80,4 +80,9 @@ if [[ "$REPLY" == "Y" || "$REPLY" == "y" ]]; then
|
||||
read -r -n 1 -p "Press any key to run: ./msg9 < prog.c: "
|
||||
echo 1>&2
|
||||
./msg9 < prog.c
|
||||
|
||||
make generated1 1>/dev/null || exit 1
|
||||
read -r -n 1 -p "Press any key to run: echo IOCCC | ./generated1: "
|
||||
echo 1>&2
|
||||
echo IOCCC | ./generated1
|
||||
fi
|
||||
Reference in new issue
Block a user