Skip to content

Commit aa76175

Browse files
committed
Atmosphere: Update dist zip filename to include commit hash
1 parent 85540d4 commit aa76175

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
TOPTARGETS := all clean dist
2+
AMSREV := $(shell git rev-parse --short HEAD)
3+
ifneq (, $(strip $(shell git status --porcelain 2>/dev/null)))
4+
AMSREV := $(AMSREV)-dirty
5+
endif
26

37
all: fusee creport
48
fusee:
@@ -21,7 +25,7 @@ dist: fusee creport
2125
$(eval MICROVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MICRO\b' common/include/atmosphere/version.h \
2226
| tr -s [:blank:] \
2327
| cut -d' ' -f3))
24-
$(eval AMSVER = $(MAJORVER).$(MINORVER).$(MICROVER))
28+
$(eval AMSVER = $(MAJORVER).$(MINORVER).$(MICROVER)-$(AMSREV))
2529
rm -rf atmosphere-$(AMSVER)
2630
rm -rf out
2731
mkdir atmosphere-$(AMSVER)

0 commit comments

Comments
 (0)