git.samba.org
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cddcceb
)
Makefile: Use time in the version string as well.
author
Martin Schwenke
<martin@meltin.net>
Mon, 29 Mar 2010 01:35:55 +0000
(12:35 +1100)
committer
Martin Schwenke
<martin@meltin.net>
Mon, 29 Mar 2010 01:35:55 +0000
(12:35 +1100)
Otherwise the versions are less likely to be monotonic.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 94ee08d200be1769f2f13df9a9c15ac049a0308b..2d794c119d8a9472554cd7643c8e3c432b59bd89 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,4
+1,6
@@
-version = 0.1.$$(git log --pretty='format:%ad.%h' --date=short -1 | sed -e 's/-//g')
+datetm = $$(git log --pretty='format:%ci.%h' -1 | sed -e 's/[-: ]//g' -e 's/+.*//')
+hash = $$(git log --pretty='format:%h' -1)
+version = 0.1.${datetm}.${hash}
prefix = /usr/local
datadir = ${prefix}/share/autocluster