infra: change buildtag to git describe for better legibility

This commit is contained in:
Benjamin Kübler 2014-04-29 07:58:57 +02:00 committed by Thomas Schoebel-Theuer
parent b741f0b992
commit b305f86ae4
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ $(obj)/buildtag.h: $(patsubst $(obj)/buildtag.h,,$(wildcard $(obj)/*.[ch])) $(ob
cd $(src); \ cd $(src); \
if [ -e DISTVERSION ]; then \ if [ -e DISTVERSION ]; then \
BUILDTAG=$$(cat DISTVERSION); \ BUILDTAG=$$(cat DISTVERSION); \
elif git rev-parse --git-dir >/dev/null 2>&1; then \ elif git describe --tags >/dev/null 2>&1; then \
BUILDTAG="$$(git rev-parse HEAD)"; \ BUILDTAG="$$(git describe --tags)"; \
else \ else \
BUILDTAG="no-buildtag-available"; \ BUILDTAG="no-buildtag-available"; \
fi; \ fi; \