Makefile.mingw: use CI_COMMIT_SHORT_SHA from gitlab-ci
This commit is contained in:
parent
5d315359aa
commit
dc82d25cb1
|
@ -44,8 +44,12 @@ BINARIES=upnpc-static.exe upnpc-shared.exe \
|
|||
ifneq ($(GITHUB_SHA),)
|
||||
COMMITREF=$(GITHUB_SHA)
|
||||
else
|
||||
ifneq ($(CI_COMMIT_SHORT_SHA),)
|
||||
COMMITREF=$(CI_COMMIT_SHORT_SHA)
|
||||
else
|
||||
COMMITREF=$(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
endif
|
||||
DISTFILE:=$(shell echo "miniupnpc-bin-win32-`cat VERSION`-$(COMMITREF).zip")
|
||||
|
||||
.PHONY: all dist clean
|
||||
|
|
Loading…
Reference in New Issue