Skip to content

Commit

Permalink
Add a way to override the email used for uploads.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Jan 17, 2024
1 parent 9213f54 commit 196ec52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ endif

.%.upload: %.xml
set -ex; tag="$(notdir $(basename $<))"; \
email="$$(git tag --list --format '%(taggeremail)' "$$tag" | sed -e 's/^<//;s/>$$//')"; \
email="$(UPLOAD_EMAIL)"; \
[ -z "$$email" ] && email="$$(git tag --list --format '%(taggeremail)' "$$tag" | sed -e 's/^<//;s/>$$//')"; \
[ -z "$$email" ] && email=$$(xmllint --xpath '/rfc/front/author[1]/address/email/text()' $< 2>/dev/null); \
[ -z "$$email" ] && ! echo "Unable to find email to use for submission." 1>&2; \
replaces() { \
Expand Down

0 comments on commit 196ec52

Please sign in to comment.