From d1e28658f964410b9b8f20b5a8dc0c80309512dd Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Thu, 9 Jan 2025 21:14:36 -0800 Subject: [PATCH] more sitemap cleanup removed most inc files form cleanup except `inc/index.html`. Updated `sitemap.xml`. Changed `bin/status2html.sh` VERSION from "1.3.15 2025-01-09" to "1.3.16 2025-01-09". Performed `make gen_status gen_sitemap timestamp` on macOS to complete the above. --- bin/gen-sitemap.sh | 17 +++++- sitemap.xml | 138 +-------------------------------------------- 2 files changed, 15 insertions(+), 140 deletions(-) diff --git a/bin/gen-sitemap.sh b/bin/gen-sitemap.sh index c4f439908..9428f43a8 100755 --- a/bin/gen-sitemap.sh +++ b/bin/gen-sitemap.sh @@ -98,7 +98,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an # set variables referenced in the usage message # -export VERSION="1.3.15 2025-01-09" +export VERSION="1.3.16 2025-01-09" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -833,14 +833,25 @@ fi # remove all files that begin with . # -sed -i -e '/\/\./d' "$TMP_MANIFEST_LIST" +sed -i -e '/\/\./d' -e '/^\./d' "$TMP_MANIFEST_LIST" status="$?" if [[ $status -ne 0 ]]; then - echo "$0: ERROR: sed -i -e '/\/\./d' $TMP_MANIFEST_LIST failed, error: $status" 1>&2 + echo "$0: ERROR: sed -i -e '/\/\./d' -e '/^\./d' $TMP_MANIFEST_LIST failed, error: $status" 1>&2 exit 1 fi +# remove all files from under inc/ except for inc/index.html +# +sed -i -e '/^inc\//d' "$TMP_MANIFEST_LIST" +status="$?" +if [[ $status -ne 0 ]]; then + echo "$0: ERROR: sed -i -e '/^inc\//d' $TMP_MANIFEST_LIST failed, error: $status" 1>&2 + exit 1 +fi +echo 'inc/index.html' >> "$TMP_MANIFEST_LIST" + + # sort the manifest list # LC_ALL=C sort -d "$TMP_MANIFEST_LIST" -o "$TMP_MANIFEST_LIST" diff --git a/sitemap.xml b/sitemap.xml index df4d0d6e8..55f44f907 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -15246,7 +15246,7 @@ https://www.ioccc.org/bin/gen-sitemap.sh - 2025-01-10T04:46:42+00:00 + 2025-01-10T05:12:36+00:00 https://www.ioccc.org/bin/gen-status.sh @@ -15420,142 +15420,10 @@ https://www.ioccc.org/faq.md 2025-01-02T02:12:25+00:00 - - https://www.ioccc.org/.gitignore - 2024-12-31T08:49:44+00:00 - - - https://www.ioccc.org/inc/after-content.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/before-content.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/body.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/bottom.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/footer.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/footer.inventory.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/guidelines.closed.hdr - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/guidelines.judging.hdr - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/guidelines.open.hdr - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/guidelines.pending.hdr - 2024-12-31T20:10:53+00:00 - - - https://www.ioccc.org/inc/guidelines.year.hdr - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/head.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/header.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/header.no-header-2.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/header.with-header-3.html - 2024-12-29T09:57:30+00:00 - https://www.ioccc.org/inc/index.html 2024-12-29T09:57:30+00:00 - - https://www.ioccc.org/inc/navbar.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.empty.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.first.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.last.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.mid.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.up2index.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.year.first.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.year.last.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/navbar.year.mid.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/README.md - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/rules.closed.hdr - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/rules.judging.hdr - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/rules.open.hdr - 2024-12-29T10:12:01+00:00 - - - https://www.ioccc.org/inc/rules.pending.hdr - 2024-12-31T20:10:53+00:00 - - - https://www.ioccc.org/inc/rules.year.hdr - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/topbar.default.html - 2024-12-29T09:57:30+00:00 - - - https://www.ioccc.org/inc/top.default.html - 2024-12-29T09:57:30+00:00 - https://www.ioccc.org/index.html 2024-12-30T21:46:38+00:00 @@ -15620,10 +15488,6 @@ https://www.ioccc.org/thanks-for-help.md 2024-12-30T21:53:04+00:00 - - https://www.ioccc.org/.top - 2024-12-29T09:57:29+00:00 - https://www.ioccc.org/var.mk 2024-12-29T09:57:30+00:00