allow for year level archive of rules and guidelines

Adjusted `bin/md2html.cfg` to allow for the creation of year level
archive of the rules and guidelines that were in effect when the given
year's content opened for submissions.

We improved `bin/gen-year-index.sh` so that if there exists
a `YYYY/rules.md` rules archive, then `YYYY/rules.html`
will be created.

We improved `bin/gen-year-index.sh` so that if there exists
a `YYYY/guidelines.md` rules archive, then `YYYY/guidelines.html`
will be created.

Changed `bin/gen-year-index.sh` VERSION from "2.0.0 2025-03-13"
to "2.1.0 2025-07-05".

Adjusted `next/rules.md` and `next/guidelines.md` so that when they are
copied as archived copies of rules and guidelines under a YYYY directory,
the internal links do not break.  There are **NO** changes to the readable
contents of the rules and guidelines, only some changes to a few internal links.

Updated `1992/buzzard.2/index.html, `1993/rince/index.html`, and
`2012/omoikane/index.html that were modified by recent commits.

Rebuild sitemap due to the changes above.

Ran `make www` to test and perform the above.
This commit is contained in:
Landon Curt Noll committed 2025-07-05 21:24:13 -07:00
1 parent def8e4d481
commit 3106998954
12 files changed
+319 -102

No files matched your search

+10 -3
View File
@@ -421,15 +421,22 @@ genpath:
# generate YYYY level .filelist
#
# This rule assumes that a YYYY/README.md will produce a YYYY/index.html file.
# This rule assumes that if there is a YYYY/rules.md then YYYY/rules.html will be created.
# This rule assumes that if there is a YYYY/guidelines.md then YYYY/guidelines.html will be created.
# These html files may be later created or updated by the quick_year_index or gen_year_index rules.
#
# IMPORTANT: .filelist assumes that make clobber was previously done.
#
genfilelist:
@echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
@-for i in ${YEARS}; do \
${RM} -f "$$i/.genfilelist.tmp"; \
${FIND} "$$i" -mindepth 1 -maxdepth 1 -type f ! -path "$$i/.genfilelist.tmp" \
! -name .DS_Store ! -name '*.swp' | \
${SORT} -f -d -u > "$$i/.genfilelist.tmp"; \
(${FIND} "$$i" -mindepth 1 -maxdepth 1 -type f -name '*.md' | \
${SED} -e 's/\.md$$/.html/' -e 's/\/README\.html/\/index.html/'; \
${FIND} "$$i" -mindepth 1 -maxdepth 1 -type f ! -path "$$i/.genfilelist.tmp" \
! -name .DS_Store ! -name '*.swp') | \
LANG=C ${SORT} -f -d -u > "$$i/.genfilelist.tmp"; \
if ${CMP} -s "$$i/.genfilelist.tmp" "$$i/.filelist"; then \
${RM} -f "$$i/.genfilelist.tmp"; \
else \