summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 63da831)
raw | patch | inline | side by side (parent: 63da831)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 14 Aug 2015 18:51:15 +0000 (20:51 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 14 Aug 2015 18:51:15 +0000 (20:51 +0200) |
version-gen.sh | patch | blob | history |
diff --git a/version-gen.sh b/version-gen.sh
index 52f04e6a32588cabbe1432d315c1f471f8ff1282..a80e9790afd909d928fe23ec6ebedaed199b6eec 100755 (executable)
--- a/version-gen.sh
+++ b/version-gen.sh
DEFAULT_VERSION="5.5.0.git"
-VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`"
+VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | grep collectd | sed -e 's/^collectd-//' -e 's/-/./g'`"
if test -z "$VERSION"; then
VERSION="$DEFAULT_VERSION"
fi
-VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
-
printf "%s" "$VERSION"