add makefile release task
parent
638ae5c6fa
commit
b952be6f56
12
Makefile
12
Makefile
|
@ -2,7 +2,7 @@ URCHIN=`which urchin`
|
||||||
SHELLS=sh bash dash ksh zsh
|
SHELLS=sh bash dash ksh zsh
|
||||||
TEST_SUITE=fast
|
TEST_SUITE=fast
|
||||||
|
|
||||||
.PHONY: $(SHELLS) test
|
.PHONY: $(SHELLS) test verify-tag release
|
||||||
|
|
||||||
$(SHELLS):
|
$(SHELLS):
|
||||||
@printf '\n\033[0;34m%s\033[0m\n' "Running tests in $@"
|
@printf '\n\033[0;34m%s\033[0m\n' "Running tests in $@"
|
||||||
|
@ -13,3 +13,13 @@ test: $(SHELLS)
|
||||||
|
|
||||||
default: test
|
default: test
|
||||||
|
|
||||||
|
verify-tag:
|
||||||
|
ifndef TAG
|
||||||
|
$(error TAG is undefined)
|
||||||
|
endif
|
||||||
|
|
||||||
|
release: verify-tag
|
||||||
|
@ OLD_TAG=`git describe --abbrev=0 --tags` && \
|
||||||
|
npm version "$(TAG)" && \
|
||||||
|
replace "$${OLD_TAG/v/}" "$(TAG)" -- nvm.sh install.sh README.markdown && \
|
||||||
|
git commit --amend nvm.sh install.sh README.markdown package.json
|
||||||
|
|
Loading…
Reference in New Issue