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).
36 lines
991 B
Bash
Executable File
36 lines
991 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# try.sh - demonstrate IOCCC entry 1992/ant alt code
|
|
#
|
|
|
|
# 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 clobber CC="$CC" alt >/dev/null || exit 1
|
|
|
|
# clear screen after compilation so that only the entry is shown
|
|
clear
|
|
|
|
echo "$ ./ant.alt Makefile am.alt # build the tool itself" 1>&2
|
|
read -r -n 1 -p "Press any key to run: ./ant Makefile am: "
|
|
echo 1>&2
|
|
./ant.alt Makefile am.alt
|
|
echo 1>&2
|
|
|
|
|
|
|
|
echo "$ ./am.alt Makefile am_alt_clobber # clobber everything except am" 1>&2
|
|
read -r -n 1 -p "Press any key to continue: "
|
|
echo 1>&2
|
|
./am.alt Makefile am_alt_clobber # clobber everything except am.alt
|
|
echo 1>&2
|
|
|
|
echo "$ ./am.alt ant.test.alt.mk # run the test Makefile with am.alt" 1>&2
|
|
read -r -n 1 -p "Press any key to continue: "
|
|
echo 1>&2
|
|
./am.alt ant.test.alt.mk # run the test Makefile with am.alt
|