From efd76a7ee72d4dfb3be2cddbdceb794f2f13c7f1 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Sat, 9 Feb 2013 09:48:52 +0000 Subject: [PATCH] Use format +git:XXXXXXXX The colon is kinder to Debian than a dash and seems stylistically better. The dash feels as though it introduces another version level, e.g. -rc1-alpha2. We could just do +gitXXXXXXXX but as git commit hashes are in lowercase hexadecimal the result can be something really ugly like +giteaf0cb71. It's also easier to select the commit hash for a copy/paste operation when there is something to separate it. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a42ce36..c6e2f9b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,7 +29,7 @@ BUILT_SOURCES = version.h version.h: version.h.tmp Makefile $(mtr_SOURCES) @cat $< > $@; \ if [ -d .git ] && [ -n "$$(which git)" ]; then \ - xver="+git-$$(git rev-list -n1 --abbrev=8 --abbrev-commit HEAD)"; \ + xver="+git:$$(git rev-list -n1 --abbrev=8 --abbrev-commit HEAD)"; \ sed \ -e "/#define *MTR_VERSION */{s/\"\([^\"]*\)\"/\"\1$$xver\"/;}" \ $< > $@; \ -- 2.47.3