Files
ioccc/2014/sinon/glock.sh
T
Cody Boone Ferguson 0903d9f3b9 Fix and improve 2014/sinon scripts
The try script now runs the demo mode if perl is installed. It also now
prompts before running each script (the below noted ones) so that one
can control the pace of the output a bit more.

The glock.sh and hecate.sh scripts could only be run once successfully
because the output of run.c overwrites it (with non code). First one has
to do cp -f prog.c run.c which the scripts now do. This was not a
problem in the try script because I added that step explicitly (and is
now not needed or there).
2024-01-28 12:42:07 -08:00

3 lines
95 B
Bash
Executable File

#!/usr/bin/env bash
cp -f prog.c run.c && cc -O0 run.c -o run > /dev/null && ./run | tee run.c