Rename and improve 2006/sykes2/sykes2.sh -> try.sh

The README.md did not need anything done other than changing it to refer
to try.sh instead of sykes2.sh.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-24 04:40:07 -08:00
1 parent e62280acd5
commit 400e3f4e05
4 files changed
+28 -10

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ make
### Try:
```sh
./sykes2.sh
./try.sh
```
This will repeatedly remake the program and run it then sleep for one second for
-9
View File
@@ -1,9 +0,0 @@
#!/usr/bin/env bash
while :; do
clear
rm -f sykes2
make sykes2 2>/dev/null 1>&2
./sykes2
sleep 1
done
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
#
# try.sh - demonstrate IOCCC winner 2006/sykes2
#
# 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" sykes2 || exit 1
while :; do
clear
rm -f sykes2
make sykes2 2>/dev/null 1>&2 || exit 1
./sykes2
sleep 1
done
+6
View File
@@ -3026,6 +3026,12 @@ The video was also no longer available but Cody found an alternative and added
it to the repo as well.
## [2006/sykes2](2006/sykes2/sykes2.c) ([README.md](2006/sykes2/README.md]))
Cody added the [try.sh](2006/sykes2/try.sh) script for easier use of the entry
to show the clock update in real time.
## [2006/toledo2](2006/toledo2/toledo2.c) ([README.md](2006/toledo2/README.md]))
Cody fixed a segfault in this program which was making it fail to work under