Files
Cody Boone Ferguson 1ac055fa85 Reword the recent deobfuscation changes
In most cases the word was changed to 'obfuscation' as it was about
obfuscation, not deobfuscation. In some cases like 1995/leo since the
file was (in 1995/leo) about a secret switch it was changed to
'secret.md' (and 'secret.html') but there were others like that as well.

One entry had the words 'spoiling the size rule' but this had been
changed to 'deobfuscating the size rule' which was obviously wrong.

In the latter YYYY/README.md files the judges had written after some
entries (brief summaries) '...

    ...We'll stop spouting spoilers now. Have fun exploring all the
    entries!

but that was changed to:

    ...We'll stop spouting deobfuscation information now. Have fun
    exploring all the entries!

which wasn't really about deobfuscation but just a brief summary of what
the entries did.

And in the most problematic case (at least for me :-), 2018/ferguson) I
had put a joke in:

    ... but it's the only Easter egg I won't spoil

but it was changed to 'won't deobfuscate' which not only is not what it
is but it spoilt the joke.

In some cases the word was changed back to 'SPOILER' (or similar) but in
most cases not. I believe it should be better now. There are some
caveats, however, as below.

Although make find_missing_links is okay I do not remember if this will
catch links that refer to '%%REPO_URL%%' or other pandoc tokens. This
means I might have to go back to some earlier years to verify links are
okay. That should not take that much time I hope.

It might also be that some wording can still be improved some but it is
hoped this will be discovered when checking links and looking over the
manifest (which obviously changed).
2024-07-04 09:03:45 -07:00

89 lines
2.1 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# try.sh - demonstrate IOCCC entry 2018/yang
#
# 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" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
read -r -n 1 -p "Press any key to run: ./left < prog.c (space = next page, q = quit): "
echo 1>&2
./left < prog.c | less -rEXFK
echo 1>&2
read -r -n 1 -p "Press any key to run: ./right < prog.c (space = next page, q = quit): "
echo 1>&2
./right < prog.c | less -rEXFK
echo 1>&2
read -r -n 1 -p "Press any key to run: ./left < prog.c | ./left (space = next page, q = quit): "
echo 1>&2
./left < prog.c | ./left | less -rEXFK
echo 1>&2
read -r -n 1 -p "Press any key to run: ./shift < prog.c (space = next page, q = quit): "
echo 1>&2
./shift < prog.c | less -rEXFK
echo 1>&2
read -r -n 1 -p "Press any key to run: echo IOCCC | ./left: "
echo 1>&2
echo IOCCC | ./left
echo 1>&2
read -r -n 1 -p "Press any key to run: echo IOCCC | ./right: "
echo 1>&2
echo IOCCC | ./right
echo 1>&2
read -r -n 1 -p "Press any key to run: echo IOCCC | ./shift: "
echo 1>&2
echo IOCCC | ./shift
echo 1>&2
read -r -n 1 -p "Press any key to run: ./msg0: "
echo 1>&2
./msg0
echo 1>&2
read -r -n 1 -p "Press any key to run: ./msg1: "
echo 1>&2
./msg1
echo 1>&2
read -r -n 1 -p "Press any key to run: ./msg2: "
echo 1>&2
./msg2
read -r -p "Do you wish to see some of the spoilers? (Y/N)? "
if [[ "$REPLY" == "Y" || "$REPLY" == "y" ]]; then
echo "$ make spoilers" 1>&2
make spoilers
rm -f generated*.c msg*.c
echo "$ make i_give_up_show_me_the_spoilers"
make i_give_up_show_me_the_spoilers
echo 1>&2
for i in 0 1 2 3 4 5 6 7 8; do
read -r -n 1 -p "Press any key to run: ./msg$i: "
echo 1>&2
./msg"$i"
done
echo 1>&2
read -r -n 1 -p "Press any key to run: ./msg9 < prog.c: "
echo 1>&2
./msg9 < prog.c
make generated1 1>/dev/null || exit 1
read -r -n 1 -p "Press any key to run: echo IOCCC | ./generated1: "
echo 1>&2
echo IOCCC | ./generated1
fi