aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2013-07-28 14:37:50 +0000
committerJani Välimaa <wally@mageia.org>2013-07-28 14:37:50 +0000
commit7161f27982c29c7a14e6cb62272fdb4117e4b4b0 (patch)
tree7de37461738c44fa79b59b9e7894e215bd80539b
parent274b3694c7172a4e5d40b0883305c296cadaf209 (diff)
downloadconfig-7161f27982c29c7a14e6cb62272fdb4117e4b4b0.tar
config-7161f27982c29c7a14e6cb62272fdb4117e4b4b0.tar.gz
config-7161f27982c29c7a14e6cb62272fdb4117e4b4b0.tar.bz2
config-7161f27982c29c7a14e6cb62272fdb4117e4b4b0.tar.xz
config-7161f27982c29c7a14e6cb62272fdb4117e4b4b0.zip
add Makefile target for creating NEWS header
-rw-r--r--Makefile16
1 files changed, 15 insertions, 1 deletions
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
+