summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aab7074)
raw | patch | inline | side by side (parent: aab7074)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 14 Aug 2015 18:41:49 +0000 (20:41 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 14 Aug 2015 18:49:41 +0000 (20:49 +0200) |
This adds a + when the working dir is dirty, i.e.:
5.5.0.355.gfba3b8da7b64+
5.5.0.355.gfba3b8da7b64+
version-gen.sh | patch | blob | history |
diff --git a/version-gen.sh b/version-gen.sh
index b09be8e78227f350edbe8fc6bf96634f67a0a057..08c6fef99e41837546bac7533970b2634a8e57dc 100755 (executable)
--- a/version-gen.sh
+++ b/version-gen.sh
DEFAULT_VERSION="5.5.0.git"
-VERSION="`git describe 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`"
+VERSION="`git describe --dirty=+ 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`"
if test -z "$VERSION"; then
VERSION="$DEFAULT_VERSION"