X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fbtr;a=blobdiff_plain;f=lib%2Fbtr%2Freport%2Fmail.mk;h=d16a646fb4625510c5b12868dab2e673e6cd5412;hp=0cc9fbd392153e959f0250ba2b1a352a06284762;hb=f5fd15396636986e7447993a66b8a4084a93dabb;hpb=5735fce9818606a36ff3ebbbf902030bcd46c506 diff --git a/lib/btr/report/mail.mk b/lib/btr/report/mail.mk index 0cc9fbd..d16a646 100644 --- a/lib/btr/report/mail.mk +++ b/lib/btr/report/mail.mk @@ -1,10 +1,15 @@ +REPORT_ARGS=$(USER) + .PHONY: all .SUFFIXES: all: - MESSAGE=$$(printf "\nbtr %s %s\n\n-- \nbtr mail report\n" "$(BUILD)" "$(REPORT)"); \ - mail -s "[btr] $(BUILD) $(REPORT)" \ - -a $(CONFIG_REPORT) -a $(BUILD_REPORT) -a $(TEST_REPORT) \ - $(USER) <<<"$$MESSAGE" + $(SAY) "Mailing report to $(REPORT_ARGS)" + @printf "\nbtr %s %s\n\n-- \nbtr mail report\n" "$(BUILD)" "$$(cat $(REPORT))" | \ + mail -s "[btr] $(BUILD) $$(cat $(REPORT))" \ + -a $(CONFIG_REPORT) \ + -a $(BUILD_REPORT) \ + -a $(TEST_REPORT) \ + $(REPORT_ARGS) # vim: noet