From 3fd5e448b252e531a1512514cb469ec140ab5eb4 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Fri, 29 Jul 2022 15:17:55 -0400 Subject: [PATCH] Don't hard-code the name of the patch. Nobody's gonna rename the patches, so just make them unique enough so that I can upload them to the ingress directory without conflicts. --- make.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/make.sh b/make.sh index f62343c..c37f7bc 100644 --- a/make.sh +++ b/make.sh @@ -144,15 +144,18 @@ recipe_patch() { EDITOR=vi fi + PATCH_FILE="${MXID}_$(date +%s).patch" + ( printf 'From: "%s" <%s>\n' "$DISPLAY_NAME" "$MXID" - echo "Date: $(date +%Y-%m-%d)" + echo "Date: $(date)" echo "Subject: " echo cvs diff -uNp $PATCH | grep -v '^\? ' - ) > "telodendria-patch.patch" + ) > "$PATCH_FILE" - "$EDITOR" "telodendria-patch.patch" + "$EDITOR" "$PATCH_FILE" + echo "$PATCH_FILE" } for recipe in $@; do