From 7161f27982c29c7a14e6cb62272fdb4117e4b4b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sun, 28 Jul 2013 14:37:50 +0000 Subject: add Makefile target for creating NEWS header --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 99c0616..20a0517 100644 --- a/Makefile +++ b/Makefile @@ -80,4 +80,18 @@ dist: $(info $(NAME)-$(VERSION).tar.xz is ready) -.PHONY: ChangeLog +news: + @if grep -q $(VERSION) NEWS; then \ + echo ""; \ + echo "Version $(VERSION) already exists in NEWS file!"; \ + echo "Please update version in Makefile first."; \ + echo ""; \ + exit 1; \ + else \ + sed -i -e "1i Version $(VERSION) - $$(date --rfc-3339=date)" NEWS; \ + fi; + +NEWS: news + +.PHONY: ChangeLog NEWS + -- cgit v1.2.1