Rename 1994/westley/spoiler.sh try.sh
The script now first checks columns (tput cols) and if it's not 80 it will ask the user if they still wish to continue. Checking the tab length of 8 and wraparound is probably not worth the effort. Also unfortunately output is not as nice as it used to be because compilers show more context with errors. Still having columns at 80 does improve the output a fair bit.
This commit is contained in:
1 parent
b7eacf4849
commit
a8ccd99632
5 files changed
+51
-25
No files matched your search
@@ -128,9 +128,11 @@ all: data ${TARGET}
|
||||
sandwich supernova deep_magic magic charon pluto
|
||||
|
||||
${PROG}: ${PROG}.c
|
||||
@echo "=-=-=-=-="
|
||||
@echo "NOTE: this entry has different compiler errors based on compilation line."
|
||||
@echo "The purpose is to find the right error message to win the game!"
|
||||
@echo "NOTE: your terminal should be set to 80 columns, 8 character tabs, and wraparound."
|
||||
@echo "=-=-=-=-="
|
||||
-${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
# alternative executable
|
||||
|
||||
Reference in new issue
Block a user