1 #!/usr/bin/env bash
3 DEFAULT_VERSION="5.0.4.git"
5 VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
7 if test -z "$VERSION"; then
8 VERSION="$DEFAULT_VERSION"
9 fi
11 VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
13 if test "x`uname -s`" = "xAIX" || test "x`uname -s`" = "xSunOS" ; then
14 echo "$VERSION\c"
15 else
16 echo -n "$VERSION"
17 fi