X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=version-gen.sh;h=d6d7bb202ba41f39a806fa6ca22ec9cb22b70961;hb=dd8429c16bc57f949abb2537e003b76ad88b6f90;hp=d55464316f885835fe1e3d0cb0730358c479cf00;hpb=f1ba2733d2c58fed90c13e9ae31cb7c1f3c5613e;p=collectd.git diff --git a/version-gen.sh b/version-gen.sh index d5546431..6b5e40e5 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash -DEFAULT_VERSION="5.0.4.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"