From 308655e4eddbd7e7b1b64b122ce98022bef47f4e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 27 Sep 2015 00:15:57 +0200 Subject: Makefile: Support generating prosody.version from hg archive metadata file --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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"' $^ > $@ -- cgit v1.2.3