Add --always and --dirty to git describe.

This commit is contained in:
Stephen Williams 2011-11-19 09:05:36 -08:00
parent 68c6e578ae
commit e97ca19a25
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ endif
version_tag.h version:
@if $(GIT_PRESENT) && test -d $(srcdir)/.git; then \
echo "Using git-describe for VERSION_TAG"; \
tag=`$(GIT) --git-dir $(srcdir)/.git describe`; \
tag=`$(GIT) --git-dir $(srcdir)/.git describe --always --dirty`; \
tmp=`printf "#ifndef VERSION_TAG\n#define VERSION_TAG \"$$tag\"\n#endif\n"`; \
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 \