Add 2018/vokes/try.sh + format/typo checks
The bugs.md file was also updated with INABIAF status.
This commit is contained in:
1 parent
9ad1322748
commit
a3eb5340d7
4 files changed
+139
-34
No files matched your search
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC winner 2018/vokes
|
||||
#
|
||||
|
||||
# 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
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog < example-1.txt: "
|
||||
echo 1>&2
|
||||
./prog < example-1.txt
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog < example-2.txt: "
|
||||
echo 1>&2
|
||||
./prog < example-2.txt
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog < example-tab.txt: "
|
||||
echo 1>&2
|
||||
./prog < example-tab.txt
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog < ioccc.txt: "
|
||||
echo 1>&2
|
||||
./prog < ioccc.txt
|
||||
Reference in new issue
Block a user