Changeset

6884:e32275ed5632

Makefile: Support generating prosody.version from hg archive metadata file
author Kim Alvefur <zash@zash.se>
date Sun, 27 Sep 2015 00:15:57 +0200
parents 6883:954a8a8c46d6
children 6885:07078f762061
files Makefile
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Sep 27 00:14:18 2015 +0200
+++ b/Makefile	Sun Sep 27 00:15:57 2015 +0200
@@ -68,6 +68,9 @@
 %.version: %.release
 	cp $^ $@
 
+%.version: .hg_archival.txt
+	sed -n 's/^node: \(............\).*/\1/p' $^ > $@
+
 %.version: .hg/dirstate
 	hexdump -n6 -e'6/1 "%02x"' $^ > $@