forked from lda/telodendria
Apply #10
This commit is contained in:
parent
8e8ac04505
commit
f1c0d6b40e
1 changed files with 24 additions and 0 deletions
24
make.sh
24
make.sh
|
@ -131,6 +131,30 @@ recipe_release() {
|
|||
fi
|
||||
}
|
||||
|
||||
recipe_patch() {
|
||||
if [ -z "$MXID" ]; then
|
||||
MXID="@${USER}:$(hostname)"
|
||||
fi
|
||||
|
||||
if [ -z "$DISPLAY_NAME" ]; then
|
||||
DISPLAY_NAME=$(getent passwd "$USER" | cut -d ':' -f 5 | cut -d ',' -f 1)
|
||||
fi
|
||||
|
||||
if [ -z "$EDITOR" ]; then
|
||||
EDITOR=vi
|
||||
fi
|
||||
|
||||
(
|
||||
printf 'From: "%s" <%s>\n' "$DISPLAY_NAME" "$MXID"
|
||||
echo "Date: $(date +%Y-%m-%d)"
|
||||
echo "Subject: "
|
||||
echo
|
||||
cvs diff -uNp $PATCH | grep -v '^\? '
|
||||
) > "telodendria-patch.patch"
|
||||
|
||||
"$EDITOR" "telodendria-patch.patch"
|
||||
}
|
||||
|
||||
for recipe in $@; do
|
||||
recipe_$recipe
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue