From c279a4f33736b85e86346448b5aad7ab64b2b612 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 30 Jun 2013 22:36:55 +0200 Subject: [PATCH] notify-send --- lib/btr/btr.sh | 2 +- lib/btr/report/notify-send.mk | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 lib/btr/report/notify-send.mk diff --git a/lib/btr/btr.sh b/lib/btr/btr.sh index e8bc4c1..2bc8e3e 100755 --- a/lib/btr/btr.sh +++ b/lib/btr/btr.sh @@ -92,7 +92,7 @@ function parseopts { ;; -r|--report) case "$2" in - mail) + *) REPORT_RULES="$2" ;; esac diff --git a/lib/btr/report/notify-send.mk b/lib/btr/report/notify-send.mk new file mode 100644 index 0000000..f4c5197 --- /dev/null +++ b/lib/btr/report/notify-send.mk @@ -0,0 +1,7 @@ +.PHONY: all +.SUFFIXES: + +all: + notify-send "[btr] $(BUILD) $(REPORT)" + +# vim: noet -- 2.30.2