mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
Add RELEASE_NAME
This commit is contained in:
parent
88ae955673
commit
7033927176
1 changed files with 9 additions and 5 deletions
14
Makefile
14
Makefile
|
@ -170,7 +170,7 @@ tarbin: newtarbin client/tarbin armsrc/tarbin bootrom/tarbin
|
||||||
|
|
||||||
# detect if there were changes in the platform definitions, requiring a clean
|
# detect if there were changes in the platform definitions, requiring a clean
|
||||||
cleanifplatformchanged:
|
cleanifplatformchanged:
|
||||||
ifeq ($(PLATFORM_CHANGED), true)
|
ifeq ($(PLATFORM_CHANGED),true)
|
||||||
$(info [!] Platform definitions changed, cleaning bootrom/armsrc/recovery first...)
|
$(info [!] Platform definitions changed, cleaning bootrom/armsrc/recovery first...)
|
||||||
$(Q)$(MAKE) --no-print-directory -C bootrom clean
|
$(Q)$(MAKE) --no-print-directory -C bootrom clean
|
||||||
$(Q)$(MAKE) --no-print-directory -C armsrc clean
|
$(Q)$(MAKE) --no-print-directory -C armsrc clean
|
||||||
|
@ -239,17 +239,21 @@ endif
|
||||||
release: VERSION="v4.$(shell git log --oneline master | wc -l)"
|
release: VERSION="v4.$(shell git log --oneline master | wc -l)"
|
||||||
release:
|
release:
|
||||||
# Preparing a commit for release tagging, to be reverted after tagging.
|
# Preparing a commit for release tagging, to be reverted after tagging.
|
||||||
@echo "# - Tag: $(VERSION)"
|
@echo "# - Release Tag: $(VERSION)"
|
||||||
|
ifeq ($(RELEASE_NAME),)
|
||||||
|
$(error "!!! missing RELEASE_NAME")
|
||||||
|
endif
|
||||||
|
@echo "# - Release Name: $(RELEASE_NAME)"
|
||||||
# - Removing -Werror...
|
# - 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//' {} \;
|
@find . \( -path "./Makefile.defs" -or -path "./client/Makefile" -or -path "./common_arm/Makefile.common" -or -path "./tools/hitag2crack/*/Makefile" \) -exec sed -i 's/ -Werror//' {} \;
|
||||||
@find . \( -path "./client/deps/*.cmake" -or -path "./client/CMakeLists.txt" \) -exec sed -i 's/ -Werror//' {} \;
|
@find . \( -path "./client/deps/*.cmake" -or -path "./client/CMakeLists.txt" \) -exec sed -i 's/ -Werror//' {} \;
|
||||||
# - Changing banner...
|
# - Changing banner...
|
||||||
@sed -i "s/^#define BANNERMSG3 .*/#define BANNERMSG3 \"Release $(VERSION)\"/" client/src/proxmark3.c
|
@sed -i "s/^#define BANNERMSG3 .*/#define BANNERMSG3 \"Release $(VERSION) - $(RELEASE_NAME)\"/" client/src/proxmark3.c
|
||||||
@echo -n "# ";grep "^#define BANNERMSG3" client/src/proxmark3.c
|
@echo -n "# ";grep "^#define BANNERMSG3" client/src/proxmark3.c
|
||||||
# - Committing...
|
# - Committing...
|
||||||
@git commit -a -m "Release $(VERSION)"
|
@git commit -a -m "Release $(VERSION) - $(RELEASE_NAME)"
|
||||||
# - Tagging...
|
# - Tagging...
|
||||||
@git tag -a -m "Release $(VERSION)" $(VERSION)
|
@git tag -a -m "Release $(VERSION) - $(RELEASE_NAME)" $(VERSION)
|
||||||
# - Reverting...
|
# - Reverting...
|
||||||
@git revert --no-edit HEAD
|
@git revert --no-edit HEAD
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue