diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-05-24 11:46:34 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-05-24 11:46:34 +0200 |
commit | ee369c596f4c48b482425f334b0b2d14c62196a5 (patch) | |
tree | 733281413470c90cdaa59358dfa3df6a3934704c /build-aux/git-version-gen | |
parent | c61a63a46dcfebcad561682db2b15857ad304c1f (diff) | |
download | calcurse-ee369c596f4c48b482425f334b0b2d14c62196a5.tar.gz calcurse-ee369c596f4c48b482425f334b0b2d14c62196a5.zip |
build-aux/git-version-gen: Ignore timestamps.
Do not declare the working tree dirty if only a timestamp has changed.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'build-aux/git-version-gen')
-rwxr-xr-x | build-aux/git-version-gen | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index 331faef..e9e90b9 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -10,6 +10,7 @@ VERFILE="$1" if [ -d '.git' ] then + git update-index --refresh > /dev/null 2>&1 VERSION=`git describe --abbrev=4 --match='v[0-9]*' --dirty 2>/dev/null` VERSION=`echo "$VERSION" | sed 's/^v//'` [ -n "$VERSION" ] && echo -n "$VERSION" > "$VERFILE" |