aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-27 00:15:57 +0200
committerKim Alvefur <zash@zash.se>2015-09-27 00:15:57 +0200
commit8891876d7de90501961c187f9b2f210f9cafa74e (patch)
treeaf96e42a8f62b687141c41a72ad9dc68eb33a219
parent4d24241616d652a6c94ca698454ed764a72a0d46 (diff)
downloadprosody-8891876d7de90501961c187f9b2f210f9cafa74e.tar.gz
prosody-8891876d7de90501961c187f9b2f210f9cafa74e.zip
Makefile: Support generating prosody.version from hg archive metadata file
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 403bf842..c508dc5f 100644
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,9 @@ prosody.cfg.lua.install: prosody.cfg.lua.dist
%.version: %.release
cp $^ $@
+%.version: .hg_archival.txt
+ sed -n 's/^node: \(............\).*/\1/p' $^ > $@
+
%.version: .hg/dirstate
hexdump -n6 -e'6/1 "%02x"' $^ > $@