when building from dirty working dir, show it.
[collectd.git] / version-gen.sh
index b09be8e..08c6fef 100755 (executable)
@@ -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"