mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-26 18:12:34 +08:00
make release: make sure it's executed from a clean master
This commit is contained in:
parent
3e389c6e07
commit
53cb36447f
1 changed files with 9 additions and 3 deletions
12
Makefile
12
Makefile
|
@ -238,11 +238,17 @@ endif
|
|||
|
||||
release: VERSION="v4.$(shell git log --oneline master | wc -l)"
|
||||
release:
|
||||
ifneq ($(shell git rev-parse --abbrev-ref HEAD),master)
|
||||
$(error "!!! you are not on master branch, aborting")
|
||||
endif
|
||||
ifeq ($(shell git describe --dirty --always|grep -o dirty),dirty)
|
||||
$(error "!!! you have pending changes, aborting")
|
||||
endif
|
||||
ifeq ($(RELEASE_NAME),)
|
||||
$(error "!!! missing RELEASE_NAME, aborting")
|
||||
endif
|
||||
# Preparing a commit for release tagging, to be reverted after tagging.
|
||||
@echo "# - Release Tag: $(VERSION)"
|
||||
ifeq ($(RELEASE_NAME),)
|
||||
$(error "!!! missing RELEASE_NAME")
|
||||
endif
|
||||
@echo "# - Release Name: $(RELEASE_NAME)"
|
||||
# - Removing -Werror...
|
||||
@find . \( -path "./Makefile.defs" -or -path "./client/Makefile" -or -path "./common_arm/Makefile.common" -or -path "./tools/hitag2crack/*/Makefile" \) -exec sed -i 's/ -Werror//' {} \;
|
||||
|
|
Loading…
Reference in a new issue