diff options
author | Jani Välimaa <wally@mageia.org> | 2013-07-28 14:37:50 +0000 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2013-07-28 14:37:50 +0000 |
commit | 7161f27982c29c7a14e6cb62272fdb4117e4b4b0 (patch) | |
tree | 7de37461738c44fa79b59b9e7894e215bd80539b | |
parent | 274b3694c7172a4e5d40b0883305c296cadaf209 (diff) | |
download | config-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-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 + |