Add 2011/borsanyi/try.sh + format/typo checks

Format/typo check README.md.

The try.sh script is as usual to show the entry a bit.

Also updated bugs status with INABIAF section.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-25 12:08:29 -08:00
1 parent b18d0c5fa8
commit 08ce66e590
5 files changed
+81 -7

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
#
# try.sh - demonstrate IOCCC winner 2011/borsanyi
#
# 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: ./borsanyi < data.1: "
./borsanyi < data.1
echo 1>&2
read -r -n 1 -p "Press any key to run: ./borsanyi < data.2: "
./borsanyi < data.2
echo 1>&2
read -r -n 1 -p "Press any key to run: ./borsanyi < data.3: "
./borsanyi < data.3