forked from Telodendria/Telodendria
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.
This commit is contained in:
parent
f1c0d6b40e
commit
3fd5e448b2
1 changed files with 6 additions and 3 deletions
9
make.sh
9
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
|
||||
|
|
Loading…
Reference in a new issue