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
commit308655e4eddbd7e7b1b64b122ce98022bef47f4e (patch)
treeaf96e42a8f62b687141c41a72ad9dc68eb33a219
parentb4c0bd85179fb1229d2b2ad2b39db1330dd928c5 (diff)
downloadprosody-308655e4eddbd7e7b1b64b122ce98022bef47f4e.tar.gz
prosody-308655e4eddbd7e7b1b64b122ce98022bef47f4e.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"' $^ > $@