git commit -m "$rfcBranch: v$rfcRevAdvocacy c$rfcRevCriticisms"
git tag --force --sign --message "${rfcOrga} RFC${rfcTag}" "$rfcTag"
fi
-
- git_push_remote=${git_push_remote-origin}
- if test ! "${no_git_push:+set}"; then
- git push ${git_push-} --follow-tags "$git_push_remote" "$rfcTag"
- git push ${git_push-} "$git_push_remote" "$(git rev-list "$rfcTag" -1):${rfcBranch}"
- git push ${git_push-} "$git_push_remote"
- fi
}
test $# -le 0 || declare "$@"
exitTrap () {
- rm -f "$coverLetter"
- rm -fr "$patchesDir"
+ rm -f "${coverLetter-}" "${rfcAdvocacyMeta-}"
+ rm -fr "${patchesDir-}"
}
trap exitTrap EXIT
coverLetter=$(mktemp)
-patchesDir=$(mktemp -d)
mimepart_mixed=$(uuidgen)
mimepart_alternative=$(uuidgen)
mimepart_related=$(uuidgen)
rfcTag
#rfcPDF -o "$rfcDir/${rfcRepo}-${rfcTag}".pdf
+git_push_remote=${git_push_remote-origin}
+
+if test ! "${no_git_send_email:+set}"; then
{ # coverLetter
rfcPlain \
} >"$coverLetter"
-git format-patch "$rfcTagAdvocacyOld..$rfcTag^" \
+patchesDir=$(mktemp -d)
+git format-patch "${git_push_remote}/${rfcBranch}..$rfcTag" \
--output-directory "$patchesDir" \
- "$rfcDir"
+ "$rfcDir" ':!*.html'
+rfcAdvocacyMeta=$(mktemp --suffix ".json")
+pandoc -o "$rfcAdvocacyMeta" --to plain \
+ --template "$rfcRoot"/styles/metadata.json \
+ "$rfcDir"/advocacy.md
git send-email ${git_send_email-} \
- --to "$(pandoc --to plain --template "$rfcRoot"/styles/metadata.json "$rfcDir"/advocacy.md | jq -r .To | sed -e '/^null$/d')" \
- --cc "$(pandoc --to plain --template "$rfcRoot"/styles/metadata.json "$rfcDir"/advocacy.md | jq -r .Cc | sed -e '/^null$/d')" \
+ --to "$(jq -r .To <"$rfcAdvocacyMeta" | sed -e '/^null$/d')" \
+ --cc "$(jq -r .Cc <"$rfcAdvocacyMeta" | sed -e '/^null$/d')" \
--confirm cc \
--8bit-encoding UTF-8 \
--cover-letter "$coverLetter" \
"$patchesDir"
+fi
-cleanTag () { :; }
+if test ! "${no_git_push:+set}"; then
+ git push ${git_push-} --follow-tags "$git_push_remote" "$rfcTag"
+ git push ${git_push-} "$git_push_remote" "$(git rev-list "$rfcTag" -1):${rfcBranch}"
+ git push ${git_push-} "$git_push_remote"
+fi