Code

Merge branch 'collectd-4.2' of octo@verplant.org:/var/lib/git/collectd into collectd-4.2
[collectd.git] / version-gen.sh
1 #!/bin/sh
3 DEFAULT_VERSION="4.2.6.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 echo -n $VERSION