From: Ruben Kerkhof Date: Fri, 14 Aug 2015 18:41:49 +0000 (+0200) Subject: when building from dirty working dir, show it. X-Git-Tag: collectd-5.6.0~572^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bcce965ce14211d3dc66b12e0e61a6c8e566fc52;p=collectd.git when building from dirty working dir, show it. This adds a + when the working dir is dirty, i.e.: 5.5.0.355.gfba3b8da7b64+ --- diff --git a/version-gen.sh b/version-gen.sh index b09be8e7..08c6fef9 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -2,7 +2,7 @@ DEFAULT_VERSION="5.5.0.git" -VERSION="`git describe 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`" +VERSION="`git describe --dirty=+ 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`" if test -z "$VERSION"; then VERSION="$DEFAULT_VERSION"