From 9c87732942af5e736b64666a7155d8ccff34fd2c Mon Sep 17 00:00:00 2001 From: shreeraj Date: Mon, 2 Nov 2026 22:35:13 +0530 Subject: [PATCH] Add the generation date to agents/all.txt The book shows when it was last generated in its footer, but all.txt has no date, so there's nothing to use as a version when pointing an agent at it. Put the date in the header, in the same YYYY-MM-DD format. Fixes #31 --- scripts/agents_summary.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/agents_summary.sh b/scripts/agents_summary.sh index 04c2144..faa1280 100644 --- a/scripts/agents_summary.sh +++ b/scripts/agents_summary.sh @@ -17,13 +17,17 @@ META_FILE="$SRC_DIR/agents/all.meta" # Create output directory if it doesn't exist mkdir -p "$(dirname "$OUTPUT_FILE")" +# Date the file was generated, in the same format as the footer of the book +GENERATED_ON=$(date +"%Y-%m-%d") + # Start with header -cat > "$OUTPUT_FILE" << 'EOF' +cat > "$OUTPUT_FILE" << EOF # Pragmatic Rust Guidelines This file contains all guidelines concatenated for easy reference. +It was last generated on: $GENERATED_ON ---