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>
This commit is contained in:
Lukas Fleischer 2011-05-24 11:46:34 +02:00
parent c61a63a46d
commit ee369c596f

View File

@ -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"