summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 14:39:18 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:16 +0100
commit23bed8ad149d9afc0b3431f42ab12339d361cb10 (patch)
tree0fd8399fe16c13a07519758599d688e72279520b
parentf9cf76ae21d569765bae76916ec61011a0ee9b24 (diff)
downloadfribid-23bed8ad149d9afc0b3431f42ab12339d361cb10.tar.gz
fribid-23bed8ad149d9afc0b3431f42ab12339d361cb10.tar.bz2
fribid-23bed8ad149d9afc0b3431f42ab12339d361cb10.zip
Makefile rule for updating RELEASE_TIME
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cb02fa4..2b1e9b8 100644
--- a/Makefile
+++ b/Makefile
@@ -53,5 +53,12 @@ distdebsig: distdeb
# FIXME should not use *
for deb in $(DISTDESTDIR)*.deb; do gpg -o $$deb.sig --sign $$deb; done
-.PHONY: all clean dist distclean install uninstall $(SUBDIRS)
+# Release management
+prepare-release: refresh-release-time
+
+refresh-release-time:
+ date=`date '+%s'` && \
+ sed -ri 's/(#define RELEASE_TIME\s+)([0-9]+)/\1'$$date'/' common/defines.h
+
+.PHONY: all clean dist distdeb distdebsig distclean distsig install prepare-release refresh-release-time uninstall $(SUBDIRS)