Add 1993/dgibson/try.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-01-14 10:34:44 -08:00
1 parent d347b24626
commit 58195f6192
4 files changed
+35 -5

No files matched your search

+10 -2
View File
@@ -1,6 +1,6 @@
#!/bin/sh
#
# dgibson.sh - run the dgibson entry
# dgibson.sh - run the IOCCC winner 1993/dgibson
#
# usage:
# dgibson.sh [data_file]
@@ -45,7 +45,15 @@ fi
# build a new copy of the program
#
rm -f dgibson
make dgibson
# 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
# form the next generation
#