projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2cd42b
)
Makefile: Support generating prosody.version from hg archive metadata file
author
Kim Alvefur
<zash@zash.se>
Sat, 26 Sep 2015 22:15:57 +0000
(
00:15
+0200)
committer
Kim Alvefur
<zash@zash.se>
Sat, 26 Sep 2015 22:15:57 +0000
(
00:15
+0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 403bf842749377d4eabcc1f0300ae25838e701bb..c508dc5f61a8eda81f2806dd3d105577b6aa4959 100644
(file)
--- 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"' $^ > $@