diff options
Diffstat (limited to 'build-aux/git-version-gen')
-rwxr-xr-x | build-aux/git-version-gen | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index 3af7e0042..a7e096832 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -1,6 +1,6 @@ #!/bin/sh # Print a version string. -scriptversion=2007-11-03.18 +scriptversion=2007-11-03.22 # Copyright (C) 2007 Free Software Foundation # @@ -70,6 +70,9 @@ fi v=`echo "$v" |sed 's/^v//'` +# Don't declare a version "dirty" merely because a time stamp has changed. +git-status > /dev/null 2>&1 + dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty= case "$dirty" in '') ;; |