summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 18:32:00 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:17 +0100
commitd7093ce2d31f094a77efb9d849a5e8400600410c (patch)
tree9eb5b5995bf3e85a222883155366771690da11a6
parent8d7f4685ab05f88ad2bbcc52267008238228fab1 (diff)
downloadfribid-d7093ce2d31f094a77efb9d849a5e8400600410c.tar.gz
fribid-d7093ce2d31f094a77efb9d849a5e8400600410c.tar.bz2
fribid-d7093ce2d31f094a77efb9d849a5e8400600410c.zip
A makefile rule to update the CHANGELOG date
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ab405fa..f3adc43 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,7 @@ distdebsig: distdeb
for deb in $(DISTDESTDIR)*.deb; do gpg -o $$deb.sig --sign $$deb; done
# Release management
-prepare-release: refresh-release-time set-version sync-changelog
+prepare-release: refresh-release-time refresh-changelog-time set-version sync-changelog
need-version:
@[ -n "$$version" ] || (echo "The \`version' environment variable is not set" > /dev/stderr; false)
@@ -89,5 +89,10 @@ sync-changelog: need-version
|| echo "Debian versions entries are not synced from CHANGELOG"
rm -f ch-all.tmp ch-entry.tmp ch-other.tmp
+refresh-changelog-time: need-version
+ date=`date '+%F'` && \
+ sed -ri "s/^($$version - )([0-9?-]+)(.*)/\1$$date\3/" CHANGELOG
+
+
.PHONY: all clean dist distdeb distdebsig distclean distsig install need-version prepare-release refresh-release-time set-version subdirs-clean sync-changelog uninstall $(SUBDIRS)