Merge branch 'collectd-4.9' into collectd-4.10
[collectd.git] / version-gen.sh
index 99bcb7e..6b3751d 100755 (executable)
@@ -1,14 +1,17 @@
 #!/bin/sh
 
-DEFAULT_VERSION="4.7.0.git"
+DEFAULT_VERSION="4.10.1.git"
 
-VERSION="$( git describe 2> /dev/null | sed -e 's/^collectd-//' )"
+VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
 
 if test -z "$VERSION"; then
        VERSION="$DEFAULT_VERSION"
 fi
 
-VERSION=$( echo "$VERSION" | sed -e 's/-/./g' )
-
-echo -n $VERSION
+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