mirror of https://github.com/xemu-project/xemu.git
build: Fixup Git commit detector
For XQEMU, we do not currently use dotted-version notation style tag names, instead we simply use the raw commit-id. This returns the Makefile to the simple commit-id style.
This commit is contained in:
parent
bc049f43e1
commit
973a0c0409
2
Makefile
2
Makefile
|
@ -92,7 +92,7 @@ include $(SRC_PATH)/rules.mak
|
||||||
QEMU_PKGVERSION := $(if $(PKGVERSION),$(PKGVERSION),$(shell \
|
QEMU_PKGVERSION := $(if $(PKGVERSION),$(PKGVERSION),$(shell \
|
||||||
cd $(SRC_PATH); \
|
cd $(SRC_PATH); \
|
||||||
if test -e .git; then \
|
if test -e .git; then \
|
||||||
git describe --match 'v*' 2>/dev/null | tr -d '\n'; \
|
git rev-parse --short HEAD 2>/dev/null | tr -d '\n'; \
|
||||||
if ! git diff-index --quiet HEAD &>/dev/null; then \
|
if ! git diff-index --quiet HEAD &>/dev/null; then \
|
||||||
echo "-dirty"; \
|
echo "-dirty"; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|
Loading…
Reference in New Issue