You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
collectd/version-gen.sh

18 lines
335 B

#!/bin/sh
DEFAULT_VERSION="4.10.1.git"
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'`"
if test "x`uname -s`" = "xAIX" || test "x`uname -s`" = "xSunOS" ; then
echo "$VERSION\c"
else
echo -n "$VERSION"
fi