mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-22 18:32:05 +00:00
Atmosphere: Update dist zip filename to include commit hash
This commit is contained in:
parent
85540d4ad2
commit
aa761753d7
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -1,4 +1,8 @@
|
|||
TOPTARGETS := all clean dist
|
||||
AMSREV := $(shell git rev-parse --short HEAD)
|
||||
ifneq (, $(strip $(shell git status --porcelain 2>/dev/null)))
|
||||
AMSREV := $(AMSREV)-dirty
|
||||
endif
|
||||
|
||||
all: fusee creport
|
||||
fusee:
|
||||
|
@ -21,7 +25,7 @@ dist: fusee creport
|
|||
$(eval MICROVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MICRO\b' common/include/atmosphere/version.h \
|
||||
| tr -s [:blank:] \
|
||||
| cut -d' ' -f3))
|
||||
$(eval AMSVER = $(MAJORVER).$(MINORVER).$(MICROVER))
|
||||
$(eval AMSVER = $(MAJORVER).$(MINORVER).$(MICROVER)-$(AMSREV))
|
||||
rm -rf atmosphere-$(AMSVER)
|
||||
rm -rf out
|
||||
mkdir atmosphere-$(AMSVER)
|
||||
|
|
Loading…
Reference in a new issue