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:
1 parent
27ba4879a1
commit
7031130843
5 files changed
+22
-10
No files matched your search
+1
-1
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
Executable
+14
@@ -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
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
make clobber all
|
||||
cc -include stdio.h -o lush lush.c|& ./lush
|
||||
Reference in new issue
Block a user