X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=version-gen.sh;h=4d1f2ed32af91af53c94cbfba448c704ae04b1d5;hb=2652653c3db161442d28709d79c3f2d81ab571ee;hp=9f006e82aa820efed7f197c57f81a0ad2ceada2c;hpb=c192de2c944bf9c73903b4a6ac8379db3acc5955;p=collectd.git diff --git a/version-gen.sh b/version-gen.sh index 9f006e82..e40405c1 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -1,14 +1,17 @@ #!/bin/sh -DEFAULT_VERSION="4.3.2.git" +DEFAULT_VERSION="5.0.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