From bcce965ce14211d3dc66b12e0e61a6c8e566fc52 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 14 Aug 2015 20:41:49 +0200 Subject: [PATCH] when building from dirty working dir, show it. This adds a + when the working dir is dirty, i.e.: 5.5.0.355.gfba3b8da7b64+ --- version-gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.11.0