mirror of https://github.com/schoebel/mars
infra: change buildtag to git describe for better legibility
This commit is contained in:
parent
b741f0b992
commit
b305f86ae4
|
@ -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; \
|
||||||
|
|
Loading…
Reference in New Issue