From: Michael Wallner Date: Thu, 5 Mar 2015 14:35:32 +0000 (+0100) Subject: release target X-Git-Tag: v1.1.0~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e0f7138d53cde1286c791f6ae166eb6e702cafa5;hp=4e1839950dd39fd793346e724e4157bce8a169bf;p=pharext%2Fpharext release target --- diff --git a/Makefile b/Makefile index cf19520..8414513 100644 --- a/Makefile +++ b/Makefile @@ -16,5 +16,16 @@ test: clean: rm bin/pharext* -.PHONY: all clean test -.SUFFIXES: .php \ No newline at end of file +release: + echo + echo "Previous: $$(git tag --list | tail -n1)"; \ + read -p "Version: v" VERSION; \ + sed -i '' -e "s/@PHAREXT_VERSION@/v$$VERSION/" src/pharext/Version.php; \ + $(MAKE); \ + git ci -am "release v$$VERSION"; \ + git tag v$$VERSION; \ + sed -i '' -e "s/v$$VERSION/@PHAREXT_VERSION@/" src/pharext/Version.php; \ + git ci -am "back to dev" + + +.PHONY: all clean test release diff --git a/bin/pharext b/bin/pharext index 222569d..e79c042 100755 Binary files a/bin/pharext and b/bin/pharext differ