mirror of
https://github.com/schoebel/mars
synced 2025-02-26 09:30:33 +00:00
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); \
|
||||
if [ -e DISTVERSION ]; then \
|
||||
BUILDTAG=$$(cat DISTVERSION); \
|
||||
elif git rev-parse --git-dir >/dev/null 2>&1; then \
|
||||
BUILDTAG="$$(git rev-parse HEAD)"; \
|
||||
elif git describe --tags >/dev/null 2>&1; then \
|
||||
BUILDTAG="$$(git describe --tags)"; \
|
||||
else \
|
||||
BUILDTAG="no-buildtag-available"; \
|
||||
fi; \
|
||||
|
Loading…
Reference in New Issue
Block a user