X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=version-gen.sh;h=3a7fac860ad49c378b151f1d7f55f6b95cc845c5;hb=c1219a1c9db2e8400e2ee94b87f86ccd441485d5;hp=0b75fc2e954c6e5efe3e39e4832ab3bd23b94312;hpb=d4fcd06107c3c3b0cfcbc8a5014f60d874509b76;p=collectd.git diff --git a/version-gen.sh b/version-gen.sh index 0b75fc2e..3a7fac86 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -1,6 +1,6 @@ -#!/usr/bin/env bash +#!/bin/sh -DEFAULT_VERSION="4.10.9.git" +DEFAULT_VERSION="5.4.2.git" VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`" @@ -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 +printf "%s" "$VERSION"