autotoolize
[m6w6/btr] / share / btr / report / notify-send.mk
diff --git a/share/btr/report/notify-send.mk b/share/btr/report/notify-send.mk
new file mode 100644 (file)
index 0000000..cfc20cc
--- /dev/null
@@ -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