Rename 1992/runme.sh lush.sh and improve it

The script now lets one specify which compiler to use so that one can
(in the case that their cc is clang, for instance like it is with macOS)
specify a path to a real gcc compiler.
This commit is contained in:
Cody Boone Ferguson committed 2024-01-13 10:29:59 -08:00
1 parent 27ba4879a1
commit 7031130843
5 files changed
+22 -10

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ For more detailed information see [1992 lush in bugs.md](/bugs.md#1992-lush).
## To use:
```sh
./runme.sh
./lush.sh
```
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# lush.sh - run IOCCC winner 1992/lush
#
# 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 clobber all
"$CC" -include stdio.h -o lush lush.c|& ./lush
-4
View File
@@ -1,4 +0,0 @@
#!/usr/bin/env bash
make clobber all
cc -include stdio.h -o lush lush.c|& ./lush