X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fbtr;a=blobdiff_plain;f=share%2Fbtr%2Freport%2Fnotify-send.mk;fp=share%2Fbtr%2Freport%2Fnotify-send.mk;h=cfc20ccb27d3a8fd2ebd34cc1822de9cc87131a7;hp=0000000000000000000000000000000000000000;hb=4723d8f5f6c11d101989ab6c64658c03211100dc;hpb=7a1b870bedbbb500f7425751c60229aea6a1f48d diff --git a/share/btr/report/notify-send.mk b/share/btr/report/notify-send.mk new file mode 100644 index 0000000..cfc20cc --- /dev/null +++ b/share/btr/report/notify-send.mk @@ -0,0 +1,12 @@ +.PHONY: all +.SUFFIXES: + +all: + $(SAY) "Notifying $(USER) about the report" + CONFIG_URL=$$(curl -sSF sprunge="@$(CONFIG_REPORT)" sprunge.us); \ + BUILD_URL=$$(curl -sSF sprunge="@$(BUILD_REPORT)" sprunge.us); \ + TEST_URL=$$(curl -sSF sprunge="@$(TEST_REPORT)" sprunge.us); \ + notify-send $(REPORT_ARGS) "[btr] $(BUILD) $$(cat $(REPORT))" \ + "Config: $$CONFIG_URL -- Build: $$BUILD_URL -- Test:$$TEST_URL"; + +# vim: noet