Skip to content

Commit

Permalink
Atmosphere: Update dist zip filename to include commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Oct 21, 2018
1 parent 85540d4 commit aa76175
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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:
Expand All @@ -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)
Expand Down

0 comments on commit aa76175

Please sign in to comment.