Files
Cody Boone Ferguson ffdb219ceb Change references of 'alt code' to 'alternate code'
This was done by:

    sgit -e 's/alt code/alternate code/g' . ; git co tmp/OLD_manifest

as well as updating the tmp/manifest.numbers spreadsheet and exporting
to the CSV file (though that would not strictly be necessary).

The way this works means that the update manifest script does not need
to be run as it sgit(1) touched the .entry.json files (any that needed
to be updated) and so would any index.html files. An example for both
.entry.json and index.html files being modified due to manifest is
2012/kang.

Numerous Makefiles were updated, any try scripts that had 'alt code'
instead of 'alternate code' and README.md/index.html files (unrelated to
the manifest as 'alt code' was used in other places too) and obviously
the manifest.numbers spreadsheet.

However to be safe I will do a run of the manifest script in a bit even
though it should not be necessary. If no commits are made it means all
is good and if any commits are made for the manifest it means that I
did not think of something (or else I made another change after this).
2024-05-30 08:02:32 -07:00

64 lines
1.8 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# try.alt.sh - demonstrate IOCCC entry 1994/westley alternate code
#
# make sure CC is set so that one can control what compiler to use in an easy
# way.
if [[ -z "$CC" ]]; then
CC="cc"
fi
rm -f westley.alt
"${CC}" -Describe -Door westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Drain westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Dwarf westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Debris westley.alt.c -o westley.alt && ./westley.alt # or -Dungeon
sleep 1
echo 1>&2
"${CC}" -Describe -Desk westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Dime westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Directory westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Dial -DUNgeon0614 westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drink -Daiquiri westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Daiquiri westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Dwarf -Daiquiri westley.alt.c -o westley.alt && ./westley.alt # or -Drop -Down -Daiquiri
sleep 1
echo 1>&2
"${CC}" -Describe -Document westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Depress -Dotted -Dog westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Depress -Dalmatian westley.alt.c -o westley.alt && ./westley.alt # also accepts "Dalmation" [sic]
sleep 1
echo 1>&2
"${CC}" -Deposit -Dime westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Donut westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Donut -Down -Drain westley.alt.c -o westley.alt && ./westley.alt # or -Drop -Dwarf -Donut
echo 1>&2
rm -f westley.alt