diff options
author | EuAndreh <eu@euandre.org> | 2024-11-17 19:49:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-17 19:49:05 -0300 |
commit | 08c9bcb3fed37d9483258bd97aaebc47b54b3fa3 (patch) | |
tree | 7b114f79c44d347a5ecd1082943d2ba8c95dac5c /v2/src/bin/sitemap | |
parent | mv src/content/styles.css src/content/style.css (diff) | |
download | euandre.org-08c9bcb3fed37d9483258bd97aaebc47b54b3fa3.tar.gz euandre.org-08c9bcb3fed37d9483258bd97aaebc47b54b3fa3.tar.xz |
rm -rf v2/
Diffstat (limited to 'v2/src/bin/sitemap')
-rwxr-xr-x | v2/src/bin/sitemap | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/v2/src/bin/sitemap b/v2/src/bin/sitemap deleted file mode 100755 index 09f7eb1..0000000 --- a/v2/src/bin/sitemap +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh -set -eu - -usage() { - cat <<-'EOF' - Usage: - sitemap - sitemap -h - EOF -} - -help() { - cat <<-'EOF' - - - Options: - -h, --help show this message - - - Process all generate "*.mapentry" files, combine them all - together into the final "sitemap.xml" file. - - - Examples: - - Generate the final sitemap.xml: - - $ sitemap > src/sitemap.xml - EOF -} - - -for f in "$@"; do - case "$f" in - --) - break - ;; - --help) - usage - help - exit - ;; - *) - ;; - esac -done - -while getopts 'h' flag; do - case "$flag" in - h) - usage - help - exit - ;; - *) - usage >&2 - exit 2 - ;; - esac -done -shift $((OPTIND - 1)) - - - -printf '<?xml version="1.0" encoding="UTF-8"?>\n' -printf '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n' - -find "$CONTENT_PREFIX"/ -type f -name '*.mapentry' | - LANG=POSIX.UTF-8 sort | - xargs cat - -printf '</urlset>\n' |