The unobfuscated code, which was put in deobfuscated/, has been turned into alt code. In one case the already existing alt code was made alt2 and the unobfuscated code was alt. In the case of the ones with two C files there, the one that did not require modification (to compile in modern systems) were used as those are original. In a few cases these changes suggested additional files: a test suite Makefile for the alt code, a try.alt.sh script and maybe some other things besides. The bug status was updated for 2015/howe with a known bug: in particular the test scripts do not work (at least not completely). In the manifest all references (except for a file name that has not been renamed - at least not yet) of 'deobfuscated' to 'unobfuscated': a minor detail that might not matter much but it sounds ever so slightly better (maybe). These other entries that had an entry_text change were 1995/garry and 2020/endoh2. Rebuilt .entry.json and index.html files for this (and in the case of the moved code the index.html files also had to be changed for that in addition to the Makefiles).
96 lines
2.4 KiB
Bash
Executable File
96 lines
2.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# try.sh - demonstrate IOCCC entry 2015/howe
|
|
#
|
|
|
|
# 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: ./prog prog.alt.c prog.c: "
|
|
echo 1>&2
|
|
./prog prog.alt.c prog.c
|
|
echo 1>&2
|
|
|
|
read -r -n 1 -p "Press any key to run: make test (space = next page, q = quit): "
|
|
echo 1>&2
|
|
make test | less -rEXFK
|
|
echo 1>&2
|
|
|
|
read -r -n 1 -p "Press any key to run: ./prog -d ABXYEFCD.tmp ACDBECFD.tmp: "
|
|
echo 1>&2
|
|
./prog -d ABXYEFCD.tmp ACDBECFD.tmp
|
|
echo 1>&2
|
|
|
|
read -r -n 1 -p "Press any key to run: ./prog ABXYEFCD.tmp ACDBECFD.tmp: "
|
|
echo 1>&2
|
|
./prog ABXYEFCD.tmp ACDBECFD.tmp
|
|
echo 1>&2
|
|
|
|
rm -f curds.tmp whey.tmp
|
|
read -r -n 1 -p "Press any key to run: cp -vf cc.1 curds.tmp: "
|
|
echo 1>&2
|
|
cp -vf cc.1 curds.tmp
|
|
echo 1>&2
|
|
read -r -n 1 -p "Press any key to run: cp -vf cc.1 whey.tmp: "
|
|
echo 1>&2
|
|
cp -vf cc.1 whey.tmp
|
|
|
|
read -r -n 1 -p "Press any key to run: chmod -v 666 whey.tmp: "
|
|
echo 1>&2
|
|
chmod -v 666 whey.tmp
|
|
echo 1>&2
|
|
|
|
if [[ ! -x makeholes ]]; then
|
|
read -r -n 1 -p "Press any key to run: make makeholes: "
|
|
echo 1>&2
|
|
make makeholes
|
|
echo 1>&2
|
|
fi
|
|
|
|
read -r -n 1 -p "Press any key to run: ./makeholes -n 1000 whey.tmp: "
|
|
echo 1>&2
|
|
./makeholes -n 1000 whey.tmp
|
|
echo 1>&2
|
|
|
|
read -r -n 1 -p "Press any key to run: ./prog curds.tmp whey.tmp (space = next page, q = quit): "
|
|
echo 1>&2
|
|
./prog curds.tmp whey.tmp | less -rEXFK
|
|
echo 1>&2
|
|
|
|
read -r -n 1 -p "Press any key to run: ./avgtime.sh 100 ./prog curds.tmp whey.tmp: "
|
|
echo 1>&2
|
|
./avgtime.sh 100 ./prog curds.tmp whey.tmp
|
|
echo 1>&2
|
|
|
|
read -r -n 1 -p "Press any key to run: cp -vf war-and-peace.txt nuked.tmp: "
|
|
echo 1>&2
|
|
cp -vf war-and-peace.txt nuked.tmp
|
|
echo 1>&2
|
|
|
|
read -r -n 1 -p "Press any key to run: ./makeholes -c'~' -n 1000 nuked.tmp: "
|
|
echo 1>&2
|
|
./makeholes -c'~' -n 1000 nuked.tmp
|
|
echo 1>&2
|
|
|
|
echo "$ ./prog war-and-peace.txt nuked.tmp" 1>&2
|
|
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
|
|
echo 1>&2
|
|
./prog war-and-peace.txt nuked.tmp | less -rEXFK
|
|
echo 1>&2
|
|
|
|
echo "$ ./avgtime.sh 100 ./prog war-and-peace.txt nuked.tmp" 1>&2
|
|
read -r -n 1 -p "Press any key to continue: "
|
|
echo 1>&2
|
|
./avgtime.sh 100 ./prog war-and-peace.txt nuked.tmp
|
|
echo 1>&2
|