Permalink
Browse files

Improve version tag from git.

The --always flag to git describe is harmless in the normal case,
and helpful in some special cases. Also add the --dirty flag to
get extra interesting details.
  • Loading branch information...
1 parent f880b78 commit 575879892347a19b1b82e99e5917bf214d48abcb @steveicarus committed Nov 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile.in
View
@@ -278,7 +278,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 \
+ tmp=`$(GIT) --git-dir $(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 \

0 comments on commit 5758798

Please sign in to comment.