From 9adbe55164f4792e97b358587489aef356d06c99 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 16 Jun 2026 21:55:33 +0100 Subject: move sitemap.uppxml into src --- http/bin/mkws | 3 --- http/share/sitemap.uppxml | 21 --------------------- http/src/sitemap.uppxml | 21 +++++++++++++++++++++ 3 files changed, 21 insertions(+), 24 deletions(-) delete mode 100644 http/share/sitemap.uppxml create mode 100644 http/src/sitemap.uppxml (limited to 'http') diff --git a/http/bin/mkws b/http/bin/mkws index 91a8172..83e3821 100755 --- a/http/bin/mkws +++ b/http/bin/mkws @@ -78,6 +78,3 @@ $(cat "${layout}") echo "Written ${OUT}/${rel_dir}${name}.${ext}" done - -echo "Making sitemap.xml" -pp "${SHARE}"/sitemap.uppxml "$1" > "${OUT}"/sitemap.xml diff --git a/http/share/sitemap.uppxml b/http/share/sitemap.uppxml deleted file mode 100644 index bfcf8d8..0000000 --- a/http/share/sitemap.uppxml +++ /dev/null @@ -1,21 +0,0 @@ - - -#! -for f in $(find "${OUT}" -name "*.html") -do -#! - -#! -loc=$1/$(basename "${f}") -#! -${loc} -#! -lastmod=$(lmt -f '%Y-%m-%dT%H:%M:%SZ' "${f}" | cut -d' ' -f1) -#! -${lastmod} -1.0 - -#! -done -#! - diff --git a/http/src/sitemap.uppxml b/http/src/sitemap.uppxml new file mode 100644 index 0000000..bfcf8d8 --- /dev/null +++ b/http/src/sitemap.uppxml @@ -0,0 +1,21 @@ + + +#! +for f in $(find "${OUT}" -name "*.html") +do +#! + +#! +loc=$1/$(basename "${f}") +#! +${loc} +#! +lastmod=$(lmt -f '%Y-%m-%dT%H:%M:%SZ' "${f}" | cut -d' ' -f1) +#! +${lastmod} +1.0 + +#! +done +#! + -- cgit v1.2.3