From e037247cec1743f0c5da6fe3bb0f7b015ff08f49 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Mon, 6 Nov 2023 01:32:47 -0800 Subject: [PATCH] test fix to URL generation fir gen_dot_winner.sh Testing `2020/ferguson1/.inventory.html` and a copy in `2020/ferguson1/inventory.html` due to apparent GitHub HTML serving rules. --- 2020/ferguson1/.inventory.html | 48 +++++++++++++++++----------------- 2020/ferguson1/inventory.html | 48 +++++++++++++++++----------------- tmp/gen_dot_winner.sh | 6 ++--- 3 files changed, 51 insertions(+), 51 deletions(-) diff --git a/2020/ferguson1/.inventory.html b/2020/ferguson1/.inventory.html index 4654d9862..128f4262f 100644 --- a/2020/ferguson1/.inventory.html +++ b/2020/ferguson1/.inventory.html @@ -195,22 +195,22 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/index.html">ind winning source prog.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.c">prog.c Makefile Makefile +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/Makefile">Makefile alternative source prog.alt.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.alt.c">prog.alt.c original source prog.orig.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.orig.c">prog.orig.c about compiling @@ -235,12 +235,12 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/crazy.log.html" how to run play.sh +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/play.sh">play.sh script to reset - preset colors snake-colours.sh +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake-colours.sh">snake-colours.sh bugs and mis-features @@ -260,28 +260,28 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/gameplay.html"> source with more digraphs prog.2.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.2.c">prog.2.c source with artistic layout and shorter j macro prog.3-j.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3-j.c">prog.3-j.c source with a more artistic layout prog.3.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3.c">prog.3.c snake game man page snake.1 +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake.1">snake.1 terminal capability test source code termcaps.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/termcaps.c">termcaps.c terminal capability documentation @@ -312,32 +312,32 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/.inventory.html list of files that should not be committed under git .gitignore +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.gitignore">.gitignore description of winner in JSON .winner.json +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.winner.json">.winner.json markdown source for crazy.log.html COMPILING.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/COMPILING.md">COMPILING.md markdown source for HACKING.html HACKING.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/HACKING.md">HACKING.md markdown source for index.html README.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/README.md">README.md markdown source for bugs.html bugs.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/bugs.md">bugs.md image for chocolate cake @@ -348,23 +348,23 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/cake.jpg">cake. markdown source for chocolate-cake.html cannibalism.log.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/cannibalism.log.md">cannibalism.log.md markdown source for chocolate-cake.html chocolate-cake.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/chocolate-cake.md">chocolate-cake.md markdown source for deckmyn.html crazy.log.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/crazy.log.md">crazy.log.md markdown source for gameplay.html gameplay.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/gameplay.md">gameplay.md image for bugs.md @@ -379,18 +379,18 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/ioccc-cake.jpg" markdown source for spoilers.html spoilers.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/spoilers.md">spoilers.md markdown source for terminals.html terminals.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/terminals.md">terminals.md markdown source for troubleshooting.html troubleshooting.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/troubleshooting.md">troubleshooting.md diff --git a/2020/ferguson1/inventory.html b/2020/ferguson1/inventory.html index 4654d9862..128f4262f 100644 --- a/2020/ferguson1/inventory.html +++ b/2020/ferguson1/inventory.html @@ -195,22 +195,22 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/index.html">ind winning source prog.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.c">prog.c Makefile Makefile +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/Makefile">Makefile alternative source prog.alt.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.alt.c">prog.alt.c original source prog.orig.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.orig.c">prog.orig.c about compiling @@ -235,12 +235,12 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/crazy.log.html" how to run play.sh +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/play.sh">play.sh script to reset - preset colors snake-colours.sh +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake-colours.sh">snake-colours.sh bugs and mis-features @@ -260,28 +260,28 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/gameplay.html"> source with more digraphs prog.2.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.2.c">prog.2.c source with artistic layout and shorter j macro prog.3-j.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3-j.c">prog.3-j.c source with a more artistic layout prog.3.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3.c">prog.3.c snake game man page snake.1 +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake.1">snake.1 terminal capability test source code termcaps.c +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/termcaps.c">termcaps.c terminal capability documentation @@ -312,32 +312,32 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/.inventory.html list of files that should not be committed under git .gitignore +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.gitignore">.gitignore description of winner in JSON .winner.json +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.winner.json">.winner.json markdown source for crazy.log.html COMPILING.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/COMPILING.md">COMPILING.md markdown source for HACKING.html HACKING.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/HACKING.md">HACKING.md markdown source for index.html README.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/README.md">README.md markdown source for bugs.html bugs.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/bugs.md">bugs.md image for chocolate cake @@ -348,23 +348,23 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/cake.jpg">cake. markdown source for chocolate-cake.html cannibalism.log.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/cannibalism.log.md">cannibalism.log.md markdown source for chocolate-cake.html chocolate-cake.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/chocolate-cake.md">chocolate-cake.md markdown source for deckmyn.html crazy.log.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/crazy.log.md">crazy.log.md markdown source for gameplay.html gameplay.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/gameplay.md">gameplay.md image for bugs.md @@ -379,18 +379,18 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/ioccc-cake.jpg" markdown source for spoilers.html spoilers.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/spoilers.md">spoilers.md markdown source for terminals.html terminals.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/terminals.md">terminals.md markdown source for troubleshooting.html troubleshooting.md +href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/troubleshooting.md">troubleshooting.md diff --git a/tmp/gen_dot_winner.sh b/tmp/gen_dot_winner.sh index 63f391dd8..e220a9177 100755 --- a/tmp/gen_dot_winner.sh +++ b/tmp/gen_dot_winner.sh @@ -31,7 +31,7 @@ # setup # -export VERSION="1.0.0 2023-11-05" +export VERSION="1.0.1 2023-11-06" NAME=$(basename "$0"); export NAME export DOT_WINNER_JSON_BASENAME=".winner.json" export DOT_INVENTORY_MD_BASENAME=".inventory.md" @@ -625,11 +625,11 @@ for i in "${!WINNERS_RANK[@]}"; do # case: display via browser or download via browser # case ${DISPLAY_VIA[$i]} in - github) USE_URL="$GITHUB_URL_PATH/$FULL_WINNER_PATH/${FILE_PATH[$i]}" ;; + github) USE_URL="$GITHUB_URL_PATH/$WINNER_PATH/${FILE_PATH[$i]}" ;; browser) USE_URL="$URL_PATH/${FILE_PATH[$i]}" ;; download) USE_URL="$URL_PATH/${FILE_PATH[$i]}" ;; null) USE_URL="$URL_PATH/${FILE_PATH[$i]}" ;; - *) USE_URL="$GITHUB_URL_PATH/$FULL_WINNER_PATH/${FILE_PATH[$i]}" ;; + *) USE_URL="$GITHUB_URL_PATH/$WINNER_PATH/${FILE_PATH[$i]}" ;; esac export USE_URL