diff --git a/2018/yang/.gitignore b/2018/yang/.gitignore index c6778fac1..036a96ef2 100644 --- a/2018/yang/.gitignore +++ b/2018/yang/.gitignore @@ -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 diff --git a/2018/yang/Makefile b/2018/yang/Makefile index 69358ef13..796b3104a 100644 --- a/2018/yang/Makefile +++ b/2018/yang/Makefile @@ -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'; \ diff --git a/2018/yang/try.sh b/2018/yang/try.sh index e0af83658..0c506a83f 100755 --- a/2018/yang/try.sh +++ b/2018/yang/try.sh @@ -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