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.
This commit is contained in:
Landon Curt Noll committed 2023-11-06 01:32:47 -08:00
1 parent e45db838e6
commit e037247cec
3 files changed
+51 -51

No files matched your search

+24 -24
View File
@@ -195,22 +195,22 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/index.html">ind
<tr class="even">
<td style="text-align: left;">winning source</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.c">prog.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.c">prog.c</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Makefile</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/Makefile">Makefile</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/Makefile">Makefile</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">alternative source</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.alt.c">prog.alt.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.alt.c">prog.alt.c</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">original source</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.orig.c">prog.orig.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.orig.c">prog.orig.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">about compiling</td>
@@ -235,12 +235,12 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/crazy.log.html"
<tr class="even">
<td style="text-align: left;">how to run</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/play.sh">play.sh</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/play.sh">play.sh</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">script to reset - preset colors</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/snake-colours.sh">snake-colours.sh</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake-colours.sh">snake-colours.sh</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">bugs and mis-features</td>
@@ -260,28 +260,28 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/gameplay.html">
<tr class="odd">
<td style="text-align: left;">source with more digraphs</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.2.c">prog.2.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.2.c">prog.2.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">source with artistic layout and shorter j
macro</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.3-j.c">prog.3-j.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3-j.c">prog.3-j.c</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">source with a more artistic layout</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.3.c">prog.3.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3.c">prog.3.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">snake game man page</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/snake.1">snake.1</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake.1">snake.1</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">terminal capability test source code</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/termcaps.c">termcaps.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/termcaps.c">termcaps.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">terminal capability documentation</td>
@@ -312,32 +312,32 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/.inventory.html
<td style="text-align: left;">list of files that should not be committed
under git</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/.gitignore">.gitignore</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.gitignore">.gitignore</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">description of winner in JSON</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/.winner.json">.winner.json</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.winner.json">.winner.json</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for crazy.log.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/COMPILING.md">COMPILING.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/COMPILING.md">COMPILING.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for HACKING.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/HACKING.md">HACKING.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/HACKING.md">HACKING.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for index.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/README.md">README.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/README.md">README.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for bugs.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/bugs.md">bugs.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/bugs.md">bugs.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">image for chocolate cake</td>
@@ -348,23 +348,23 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/cake.jpg">cake.
<td style="text-align: left;">markdown source for
chocolate-cake.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/cannibalism.log.md">cannibalism.log.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/cannibalism.log.md">cannibalism.log.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for
chocolate-cake.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/chocolate-cake.md">chocolate-cake.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/chocolate-cake.md">chocolate-cake.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for deckmyn.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/crazy.log.md">crazy.log.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/crazy.log.md">crazy.log.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for gameplay.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/gameplay.md">gameplay.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/gameplay.md">gameplay.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">image for bugs.md</td>
@@ -379,18 +379,18 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/ioccc-cake.jpg"
<tr class="even">
<td style="text-align: left;">markdown source for spoilers.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/spoilers.md">spoilers.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/spoilers.md">spoilers.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for terminals.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/terminals.md">terminals.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/terminals.md">terminals.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for
troubleshooting.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/troubleshooting.md">troubleshooting.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/troubleshooting.md">troubleshooting.md</a></td>
</tr>
</tbody>
</table>
+24 -24
View File
@@ -195,22 +195,22 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/index.html">ind
<tr class="even">
<td style="text-align: left;">winning source</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.c">prog.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.c">prog.c</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Makefile</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/Makefile">Makefile</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/Makefile">Makefile</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">alternative source</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.alt.c">prog.alt.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.alt.c">prog.alt.c</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">original source</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.orig.c">prog.orig.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.orig.c">prog.orig.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">about compiling</td>
@@ -235,12 +235,12 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/crazy.log.html"
<tr class="even">
<td style="text-align: left;">how to run</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/play.sh">play.sh</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/play.sh">play.sh</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">script to reset - preset colors</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/snake-colours.sh">snake-colours.sh</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake-colours.sh">snake-colours.sh</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">bugs and mis-features</td>
@@ -260,28 +260,28 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/gameplay.html">
<tr class="odd">
<td style="text-align: left;">source with more digraphs</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.2.c">prog.2.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.2.c">prog.2.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">source with artistic layout and shorter j
macro</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.3-j.c">prog.3-j.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3-j.c">prog.3-j.c</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">source with a more artistic layout</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/prog.3.c">prog.3.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/prog.3.c">prog.3.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">snake game man page</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/snake.1">snake.1</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/snake.1">snake.1</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">terminal capability test source code</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/termcaps.c">termcaps.c</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/termcaps.c">termcaps.c</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">terminal capability documentation</td>
@@ -312,32 +312,32 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/.inventory.html
<td style="text-align: left;">list of files that should not be committed
under git</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/.gitignore">.gitignore</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.gitignore">.gitignore</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">description of winner in JSON</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/.winner.json">.winner.json</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/.winner.json">.winner.json</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for crazy.log.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/COMPILING.md">COMPILING.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/COMPILING.md">COMPILING.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for HACKING.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/HACKING.md">HACKING.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/HACKING.md">HACKING.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for index.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/README.md">README.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/README.md">README.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for bugs.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/bugs.md">bugs.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/bugs.md">bugs.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">image for chocolate cake</td>
@@ -348,23 +348,23 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/cake.jpg">cake.
<td style="text-align: left;">markdown source for
chocolate-cake.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/cannibalism.log.md">cannibalism.log.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/cannibalism.log.md">cannibalism.log.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for
chocolate-cake.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/chocolate-cake.md">chocolate-cake.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/chocolate-cake.md">chocolate-cake.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for deckmyn.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/crazy.log.md">crazy.log.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/crazy.log.md">crazy.log.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for gameplay.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/gameplay.md">gameplay.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/gameplay.md">gameplay.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">image for bugs.md</td>
@@ -379,18 +379,18 @@ href="https://ioccc-src.github.io/temp-test-ioccc/2020/ferguson1/ioccc-cake.jpg"
<tr class="even">
<td style="text-align: left;">markdown source for spoilers.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/spoilers.md">spoilers.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/spoilers.md">spoilers.md</a></td>
</tr>
<tr class="odd">
<td style="text-align: left;">markdown source for terminals.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/terminals.md">terminals.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/terminals.md">terminals.md</a></td>
</tr>
<tr class="even">
<td style="text-align: left;">markdown source for
troubleshooting.html</td>
<td style="text-align: left;"><a
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/../2020/ferguson1/troubleshooting.md">troubleshooting.md</a></td>
href="https://github.com/ioccc-src/temp-test-ioccc/2020/ferguson1/2020/ferguson1/troubleshooting.md">troubleshooting.md</a></td>
</tr>
</tbody>
</table>
+3 -3
View File
@@ -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