Merge pull request #774 from trenkel/master
[collectd.git] / version-gen.sh
index 0e0d8d4..6b5e40e 100755 (executable)
@@ -1,8 +1,8 @@
 #!/usr/bin/env bash
 
-DEFAULT_VERSION="4.10.8.git"
+DEFAULT_VERSION="5.4.1.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"
@@ -10,8 +10,4 @@ fi
 
 VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
 
-if test "x`uname -s`" = "xAIX" || test "x`uname -s`" = "xSunOS" ; then
-       echo "$VERSION\c"
-else 
-       echo -n "$VERSION"
-fi
+echo -n "$VERSION"