diff --git a/1984/mullender/.winner.json b/1984/mullender/.winner.json index 04c7851d5..f7f283ab4 100644 --- a/1984/mullender/.winner.json +++ b/1984/mullender/.winner.json @@ -56,7 +56,7 @@ "OK_to_edit" : true, "display_as" : "c", "display_via_github" : true, - "winners_text" : "head file for system who lack it" + "winners_text" : "header file for gentab.c for compatibility with 1984 systems" }, { "file_path" : "gentab.c", diff --git a/1984/mullender/index.html b/1984/mullender/index.html index 39cb5cc3c..b60bb37bc 100644 --- a/1984/mullender/index.html +++ b/1984/mullender/index.html @@ -549,7 +549,7 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1984/mullender/mu - original source
  • a.out.h -- head file for system who lack it
  • +- header file for gentab.c for compatibility with 1984 systems
  • gentab.c - author tool to create constants
  • diff --git a/2000/briddlebane/.winner.json b/2000/briddlebane/.winner.json index 4592bc65e..5965e31a9 100644 --- a/2000/briddlebane/.winner.json +++ b/2000/briddlebane/.winner.json @@ -42,6 +42,14 @@ "display_via_github" : true, "winners_text" : "original source" }, + { + "file_path" : "try.sh", + "inventory_order" : 100, + "OK_to_edit" : true, + "display_as" : "shellscript", + "display_via_github" : true, + "winners_text" : "how to run" + }, { "file_path" : "2000_briddlebane.tar.bz2", "inventory_order" : 300, diff --git a/2000/briddlebane/index.html b/2000/briddlebane/index.html index 2006f48f2..0b3bb345f 100644 --- a/2000/briddlebane/index.html +++ b/2000/briddlebane/index.html @@ -127,6 +127,10 @@ href="/temp-test-ioccc/location.html#ZZ">ZZ

    Try:

    For some fun every time you log in try running this from your .bashrc or equivalent file!

    +

    You might also like to try:

    +
    ./try.sh
    +
    +INSULTS=15 ./try.sh

    Judges’ remarks:

    One could argue that this program was a “diseased dumpster of tripe” but I suspect that would only result in the judges being heckled as a @@ -175,6 +179,9 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2000/briddlebane/

  • briddlebane.orig.c - original source
  • +
  • try.sh +- how to run
  • 2000_briddlebane.tar.bz2 - download winning source
  • diff --git a/2000/schneiderwent/index.html b/2000/schneiderwent/index.html index b9b2d4ed8..33e180c53 100644 --- a/2000/schneiderwent/index.html +++ b/2000/schneiderwent/index.html @@ -128,6 +128,11 @@ href="/temp-test-ioccc/location.html#US">US

    If you have a long while to spare (and you’re bored enough that you could watch paint dry :-) ) you might also try:

    ./try.sh
    +

    Alternatively, you can check on it later on, to see all the entry +does. Or if you wish to make it run faster, you can override how long it +sleeps per iterations and how many iterations it runs. For instance to +make it sleep only 30 seconds and run only twice:

    +
    SLEEP=30 ITERATIONS=2 ./try.sh

    Judges’ remarks:

    Very nice play by the rules and portable text obfuscation. This far surpasses old tricks like adding or subtracting 1 from every character diff --git a/2001/coupard/.winner.json b/2001/coupard/.winner.json index 7bde8cdce..72284ae74 100644 --- a/2001/coupard/.winner.json +++ b/2001/coupard/.winner.json @@ -41,6 +41,14 @@ "display_via_github" : true, "winners_text" : "original source" }, + { + "file_path" : "try.sh", + "inventory_order" : 100, + "OK_to_edit" : true, + "display_as" : "shellscript", + "display_via_github" : true, + "winners_text" : "how to run" + }, { "file_path" : "2001_coupard.tar.bz2", "inventory_order" : 300, diff --git a/2001/coupard/index.html b/2001/coupard/index.html index e5542145f..26f3ee6de 100644 --- a/2001/coupard/index.html +++ b/2001/coupard/index.html @@ -122,15 +122,7 @@ href="/temp-test-ioccc/location.html#ZZ">ZZ

    To use:

    ./coupard

    Try:

    -

    If you have access to /dev/audio or -/dev/sound/dsp:

    -
    ./coupard > /dev/audio
    -./coupard > /dev/sound/dsp
    -

    If you do not, first install sox. If you use macOS you -might install it from MacPorts or -Homebrew. Then you can try:

    -
    ./coupard | sox -q -traw -r8000 -b8 -e unsigned-integer - -tcoreaudio
    +
    ./try.sh

    Judges’ remarks:

    You may need to run this a few times to understand exactly what is being said. You might even need to look somewhere on your desktop, your @@ -156,7 +148,7 @@ that is supported by the majority of Unices that can do sound, as a lowest-denominator sound I/O interface.

    Program usage

    To listen to what the program says directly, invoke

    -
    ./coupard > /dev/audio
    +
    ./coupard > /dev/audio

    The program then speaks out something like

    The time is HH hours MM minutes SS seconds

    @@ -169,7 +161,7 @@ audio format, you can pipe it to SoX for example (sox is the Swiss army knife of Unix audio tools). The command:

    -
    ./coupard | sox -c1 -r8000 -tub - -c2 -r44100 -twav test.wav
    +
    ./coupard | sox -c1 -r8000 -tub - -c2 -r44100 -twav test.wav

    converts the output of the program into a 44.1KHz stereo .WAV file and saves it into test.wav.

    The output format of the program is 8KHz, unsigned 8-bit samples.

    @@ -254,6 +246,9 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/coupard/Make
  • coupard.orig.c - original source
  • +
  • try.sh +- how to run
  • 2001_coupard.tar.bz2 - download winning source
  • diff --git a/2001/dgbeards/index.html b/2001/dgbeards/index.html index 7a8f63302..ebff2c9bd 100644 --- a/2001/dgbeards/index.html +++ b/2001/dgbeards/index.html @@ -143,10 +143,6 @@ the change.

    :-) ). It’s a very simple thing to do. Read the author’s remarks for clues.

    This game crashes if it loses.

    -

    This is supposed to happen. As is written in the The Jargon -File:

    -
    That's not a bug, that's a feature.

    Judges’ remarks:

    This is probably the worst AI we’ve ever seen. So, then, why did the entry win? Because it’s trying to lose.

    diff --git a/2001/westley/index.html b/2001/westley/index.html index 3ec0c973a..1b0f7f78e 100644 --- a/2001/westley/index.html +++ b/2001/westley/index.html @@ -126,7 +126,8 @@ href="#alternate-code">alternate code below.

    Bugs and (Mis)features:

    The current status of this entry is:

    STATUS: uses gets() - change to fgets() if possible
    -STATUS: missing files - please provide them
    +STATUS: missing files - please provide them +STATUS: main() has only one arg - try and make it have 2 or 3

    For more detailed information see 2001 westley in bugs.md.

    To use:

    diff --git a/2005/boutines/index.html b/2005/boutines/index.html index 6745c3fa7..95cfc6d87 100644 --- a/2005/boutines/index.html +++ b/2005/boutines/index.html @@ -124,7 +124,9 @@ href="/temp-test-ioccc/location.html#FR">FR

    href="https://www.w3.org/TR/SVG11/expanded-toc.html">SVG viewer or a converter like ImageMagick’s -convert.

    +convert. See FAQ 3.17 - How +do I compile and install ImageMagick for entries that require +it?.

    Look here to find some SVG Viewer Implementations.

    diff --git a/2005/jetro/index.html b/2005/jetro/index.html index a59e09923..c192ce937 100644 --- a/2005/jetro/index.html +++ b/2005/jetro/index.html @@ -117,9 +117,9 @@ Location: FI

    To build:

    -

    This entry requires SDL to be installed.

    -

    See the FAQ for information on how to install -it if you haven’t already.

    +

    This entry requires SDL. See 3.8 - How do I +compile an IOCCC winner that requires SDL1 or SDL2? for information +on how to install it if you haven’t already.

    If you have SDL installed:

    make

    To use:

    diff --git a/2006/sykes1/Makefile b/2006/sykes1/Makefile index 1d0918db6..163545ae9 100644 --- a/2006/sykes1/Makefile +++ b/2006/sykes1/Makefile @@ -218,7 +218,7 @@ clean: clobber: clean ${RM} -f ${TARGET} ${ALT_TARGET} - ${RM} -rf *.dSYM + ${RM} -rf *.dSYM *.gif ${RM} -f ${PROG}.html @-if [ -e sandwich ]; then \ ${RM} -f sandwich; \ diff --git a/tmp/manifest.csv b/tmp/manifest.csv index 520a76e03..49f3aa2cf 100644 --- a/tmp/manifest.csv +++ b/tmp/manifest.csv @@ -35,7 +35,7 @@ 1984,mullender,Makefile,30,true,makefile,true,winner Makefile 1984,mullender,mullender.alt.c,40,true,c,true,alternative source 1984,mullender,mullender.orig.c,50,false,c,true,original source -1984,mullender,a.out.h,150,true,c,true,head file for system who lack it +1984,mullender,a.out.h,150,true,c,true,header file for gentab.c for compatibility with 1984 systems 1984,mullender,gentab.c,150,true,c,true,author tool to create constants 1984,mullender,1984_mullender.tar.bz2,300,false,tbz2,false,download winning source 1984,mullender,README.md,4294967295,true,markdown,true,markdown source for index.html @@ -1542,6 +1542,7 @@ 2000,briddlebane,briddlebane.c,20,true,c,true,winning source 2000,briddlebane,Makefile,30,true,makefile,true,winner Makefile 2000,briddlebane,briddlebane.orig.c,50,false,c,true,original source +2000,briddlebane,try.sh,100,true,shellscript,true,how to run 2000,briddlebane,2000_briddlebane.tar.bz2,300,false,tbz2,false,download winning source 2000,briddlebane,README.md,4294967295,true,markdown,true,markdown source for index.html 2000,briddlebane,.gitignore,4294967295,true,gitignore,true,list of files that should not be committed under git @@ -1690,6 +1691,7 @@ 2001,coupard,coupard.c,20,true,c,true,winning source 2001,coupard,Makefile,30,true,makefile,true,winner Makefile 2001,coupard,coupard.orig.c,50,false,c,true,original source +2001,coupard,try.sh,100,true,shellscript,true,how to run 2001,coupard,2001_coupard.tar.bz2,300,false,tbz2,false,download winning source 2001,coupard,README.md,4294967295,true,markdown,true,markdown source for index.html 2001,coupard,.gitignore,4294967295,true,gitignore,true,list of files that should not be committed under git diff --git a/tmp/manifest.numbers b/tmp/manifest.numbers index 2f8308cf7..d11b59542 100644 Binary files a/tmp/manifest.numbers and b/tmp/manifest.numbers differ diff --git a/tmp/path_list.found.txt b/tmp/path_list.found.txt index 3f18627a5..aa7ef58b0 100644 --- a/tmp/path_list.found.txt +++ b/tmp/path_list.found.txt @@ -1396,6 +1396,7 @@ 2000/briddlebane/briddlebane.c 2000/briddlebane/briddlebane.orig.c 2000/briddlebane/index.html +2000/briddlebane/try.sh 2000/dhyang/.gitignore 2000/dhyang/.path 2000/dhyang/.winner.json @@ -1530,6 +1531,7 @@ 2001/coupard/coupard.c 2001/coupard/coupard.orig.c 2001/coupard/index.html +2001/coupard/try.sh 2001/ctk/.gitignore 2001/ctk/.path 2001/ctk/.winner.json diff --git a/tmp/path_list.manifest.txt b/tmp/path_list.manifest.txt index 624132cbb..8960ff49c 100644 --- a/tmp/path_list.manifest.txt +++ b/tmp/path_list.manifest.txt @@ -1546,6 +1546,7 @@ 2000/briddlebane/briddlebane.c 2000/briddlebane/briddlebane.orig.c 2000/briddlebane/index.html +2000/briddlebane/try.sh 2000/dhyang/.gitignore 2000/dhyang/.path 2000/dhyang/.winner.json @@ -1694,6 +1695,7 @@ 2001/coupard/coupard.c 2001/coupard/coupard.orig.c 2001/coupard/index.html +2001/coupard/try.sh 2001/ctk/.gitignore 2001/ctk/.path 2001/ctk/.winner.json diff --git a/tmp/path_list.required.txt b/tmp/path_list.required.txt index 460450a78..4aba506cd 100644 --- a/tmp/path_list.required.txt +++ b/tmp/path_list.required.txt @@ -1116,6 +1116,7 @@ 2000/briddlebane/README.md 2000/briddlebane/briddlebane.c 2000/briddlebane/briddlebane.orig.c +2000/briddlebane/try.sh 2000/dhyang/.gitignore 2000/dhyang/.winner.json 2000/dhyang/Makefile @@ -1222,6 +1223,7 @@ 2001/coupard/README.md 2001/coupard/coupard.c 2001/coupard/coupard.orig.c +2001/coupard/try.sh 2001/ctk/.gitignore 2001/ctk/.winner.json 2001/ctk/Makefile diff --git a/tmp/update-manifest.sh b/tmp/update-manifest.sh index 5110b2b46..b9364e4e7 100755 --- a/tmp/update-manifest.sh +++ b/tmp/update-manifest.sh @@ -106,20 +106,24 @@ if ! cd "$TOPDIR"; then fi # I have found problems using git rev-parse to verify that we're in a git repo -# plus we need the user to see git status anyway so use git status instead. +# and we need the user to see git status anyway so use git status instead. if ! "$GIT" status 1>&2; then echo "$USAGE" 1>&2 echo 1>&2 - echo "$(basename "$0"): ERROR: ${PWD} is not a git repository" 1>&2 + echo "ERROR: ${PWD} is not a git repository" 1>&2 exit 3 fi echo 1>&2 -echo "NOTE: manifest.numbers and manifest.csv may be modified here but nothing else" 1>&2 -echo "may be and no new files may be staged for commit either:" 1>&2 +echo "NOTE: manifest.numbers and manifest.csv may be modified here BUT NOTHING ELSE" 1>&2 +echo "MAY BE (UNLESS RERUNNING THIS SCRIPT AFTER FIXING A PROBLEM: then related files" 1>&2 +echo "in /tmp/ may be modified BUT ONLY FILES RELEVANT TO THE MANIFEST!). NO NEW FILES" 1>&2 +echo "MAY BE STAGED FOR COMMIT EITHER!" 1>&2 read -r -p "Do you have a clean state from git status (Y/N)? " if [[ "$REPLY" != "Y" && "$REPLY" != "y" ]]; then - echo "$0: exiting 4 due to user telling us there's a problem." 1>&2 + echo 1>&2 + echo "exiting 4 due to user telling us that manifest.numbers and/or" 1>&2 + echo "manifest.csv NOT UPDATED." 1>&2 exit 4 fi @@ -129,7 +133,7 @@ echo "Showing branches: " 1>&2 "$GIT" branch 1>&2 read -r -p "Are you on the right branch (Y/N)? " if [[ "$REPLY" != "Y" && "$REPLY" != "y" ]]; then - echo "$0: exiting 4 due to user telling us there's a problem." 1>&2 + echo "exiting 4 due to user telling us they're on the WRONG BRANCH." 1>&2 exit 4 fi @@ -143,7 +147,7 @@ fi # now check that manifest.csv is a regular readable file # if [[ ! -f manifest.csv || ! -r manifest.csv ]]; then - echo "$0: manifest.csv does not exist or not a regular readable file" 1>&2 + echo "manifest.csv does not exist or not a regular readable file" 1>&2 exit 3 fi @@ -152,27 +156,23 @@ fi echo "We will now try and update the manifest files. Are you sure that you updated" 1>&2 read -r -p "AND sorted the manifest.numbers spreadsheet AND exported to manifest.csv (Y/N)? " if [[ "$REPLY" != "y" && "$REPLY" != "Y" ]]; then - echo "$0: exiting 4 due to user not updating manifest files before running this tool" 1>&2 + echo "exiting 4 due to user not updating manifest files before running this tool" 1>&2 exit 4 fi # run ./fix_csv.sh first # -if [[ "$V_FLAG" -gt 0 ]]; then - echo "$0: debug[1]: about to run: ./fix_csv.sh -v $CAP_D_FLAG" 1>&2 -fi +echo "$(basename "$0"): now will run: ./fix_csv.sh -v $CAP_D_FLAG" 1>&2 if ! ./fix_csv.sh -v "$CAP_D_FLAG" ; then - echo "$0: fix_csv.sh failed, try updating manifest.csv and try again." 1>&2 + echo "fix_csv.sh failed, try updating manifest.csv and try again." 1>&2 exit 5 fi # run ./gen_path_list.found.sh # -if [[ "$V_FLAG" -gt 0 ]]; then - echo "$0: debug[1]: about to run: ./gen_path_list.found.sh -v $CAP_D_FLAG" 1>&2 -fi +echo "$(basename "$0"): now will run: ./gen_path_list.found.sh -v $CAP_D_FLAG" 1>&2 if ! ./gen_path_list.found.sh -v "$CAP_D_FLAG" ; then - echo "$0: gen_path_list.found.sh failed, try updating manifest.csv and try again." 1>&2 + echo "gen_path_list.found.sh failed, try updating manifest.csv and try again." 1>&2 exit 5 fi @@ -184,15 +184,16 @@ echo 1>&2 read -r -p "Does everything look okay (Y/N)? " if [[ "$REPLY" != "y" && "$REPLY" != "Y" ]]; then - echo "$0: exiting 4 due to user telling us there's a problem." 1>&2 + echo "exiting 4 due to user telling us that git diff path_list.found.txt DOES" 1>&2 + echo "NOT LOOK OKAY." 1>&2 exit 4 fi # run ./check_path_list.sh # -echo "$0: now will run: ./check_path_list.sh -v $CAP_D_FLAG" 1>&2 +echo "$(basename "$0"): now will run: ./check_path_list.sh -v $CAP_D_FLAG" 1>&2 if ! ./check_path_list.sh -v "$CAP_D_FLAG"; then - echo "$0: ./check_path_list.sh failed, try updating manifest.csv and try again." 1>&2 + echo "check_path_list.sh failed, try updating manifest.csv and try again." 1>&2 exit 5 fi @@ -241,10 +242,10 @@ else fi echo 1>&2 -echo "now will run ./run_all.sh -v $CAP_D_FLAG ./gen_winner_json.sh" 1>&2 +echo "$(basename "$0"): now will run ./run_all.sh -v $CAP_D_FLAG ./gen_winner_json.sh" 1>&2 echo "NOTE: this step will take a while." 1>&2 if ! ./run_all.sh -v "$CAP_D_FLAG" ./gen_winner_json.sh; then - echo "$0: problem with ./run_all.sh, fix manifest and try again." 1>&2 + echo "problem with ./run_all.sh, fix manifest and try again." 1>&2 exit 5 fi @@ -297,19 +298,19 @@ cd .. read -r -n 1 -p "Press any key to continue: " echo 1>&2 -echo "Will now update index.html files." 1>&2 +echo "$(basename "$0"): will now update index.html files." 1>&2 read -r -p "Do you wish to use quick-readme2index.sh (Y/N)? " if [[ "$REPLY" != "Y" && "$REPLY" != "y" ]]; then - echo "$0: now will run: bin/all-run.sh -v $CAP_D_FLAG bin/readme2index.sh -v $CAP_D_FLAG" 1>&2 + echo "$(basename "$0"): now will run: bin/all-run.sh -v $CAP_D_FLAG bin/readme2index.sh -v $CAP_D_FLAG" 1>&2 if ! bin/all-run.sh -v "$CAP_D_FLAG" bin/readme2index.sh -v "$CAP_D_FLAG"; then - echo "$0: problem running bin/all-run bin/readme2index.sh, fix and try again." 1>&2 + echo "problem running bin/all-run bin/readme2index.sh, fix and try again." 1>&2 exit 5 fi else - echo "$0: now will run: bin/all-run.sh -v $CAP_D_FLAG bin/quick-readme2index.sh -v $CAP_D_FLAG" + echo "$(basename "$0"): now will run: bin/all-run.sh -v $CAP_D_FLAG bin/quick-readme2index.sh -v $CAP_D_FLAG" echo "NOTE: this will take a while." 1>&2 if ! bin/all-run.sh -v "$CAP_D_FLAG" bin/quick-readme2index.sh -v "$CAP_D_FLAG"; then - echo "$0: problem running bin/all-run bin bin/quick-readme2index.sh, fix and try again." 1>&2 + echo "problem running bin/all-run bin bin/quick-readme2index.sh, fix and try again." 1>&2 exit 5 fi fi @@ -321,7 +322,7 @@ echo 1>&2 read -r -p "Does everything look okay (Y/N)? " if [[ "$REPLY" != "Y" && "$REPLY" != "y" ]]; then - echo "$0: exiting 4 due to user telling us there's a problem." 1>&2 + echo "$0: exiting 4 due to user telling us git diff DOES NOT LOOK OKAY." 1>&2 exit 4 fi