Try to eliminate spurious -dirty in version_tag.h

This commit is contained in:
Larry Doolittle 2015-04-24 10:12:20 -07:00 committed by Cary R
parent 02ee3874e7
commit 19d966e235
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ endif
version_tag.h version:
@if $(GIT_PRESENT) && test -d $(srcdir)/.git; then \
echo "Using git-describe for VERSION_TAG"; \
tmp=`$(GIT) --git-dir $(srcdir)/.git describe --always --dirty \
tmp=`(cd $(srcdir) && $(GIT) describe --always --dirty) \
| sed -e 's;\(.*\);#define VERSION_TAG "\1";'`; \
echo "$$tmp" | diff - version_tag.h > /dev/null 2>&1 || echo "$$tmp" > version_tag.h || exit 1; \
elif test -r $(srcdir)/version_tag.h; then \