diff --git a/version-gen.sh b/version-gen.sh
index 5ab6f78f57a75bf738382b14c301fcfdc0783b08..f0f8dcaf91535608b281b69b8a5f398e52326899 100755 (executable)
--- a/version-gen.sh
+++ b/version-gen.sh
#!/bin/sh
#!/bin/sh
-DEFAULT_VERSION="5.3.1.git"
+DEFAULT_VERSION="5.5.2.git"
-VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
+VERSION="`git describe 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`"
if test -z "$VERSION"; then
VERSION="$DEFAULT_VERSION"
if test -z "$VERSION"; then
VERSION="$DEFAULT_VERSION"
VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
-echo -n "$VERSION"
+printf "%s" "$VERSION"