From d54fc718baefae9e65264927e6950f80429a59c1 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:21:37 -0700 Subject: [PATCH] Improve bin/gen-sitemap.sh The script now uses git ls-files instead of find, so that other files in the directories are not added to the sitemap. --- bin/gen-sitemap.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/gen-sitemap.sh b/bin/gen-sitemap.sh index 623d02f8c..f1045fde2 100755 --- a/bin/gen-sitemap.sh +++ b/bin/gen-sitemap.sh @@ -2,6 +2,12 @@ # # gen-sitemap.sh - generate an xml sitemap # +# This script was improved by Cody Boone Ferguson / @xexyl to use git ls-files +# so that other files that might exist in the directories we search are not +# added to the sitemap. +# +# "Because sometimes even IOCCC Judges need some help." :-) +# # Copyright (c) 2024 by Landon Curt Noll. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and @@ -634,7 +640,7 @@ EOF0 # add files from selected sub-directories # -find "$ARCHIVE_HISTORIC_DIR" "$AUTHOR_DIR" "$BIN_DIR" "$INC_DIR" -type f -print >> "$TMP_MANIFEST_LIST" +"$GIT_TOOL" ls-files "$ARCHIVE_HISTORIC_DIR" "$AUTHOR_DIR" "$BIN_DIR" "$INC_DIR" >> "$TMP_MANIFEST_LIST" # generate sorted list of entry files from the full IOCCC manifest