From e0f7138d53cde1286c791f6ae166eb6e702cafa5 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 5 Mar 2015 15:35:32 +0100 Subject: [PATCH 1/1] release target --- Makefile | 15 +++++++++++++-- bin/pharext | Bin 31334 -> 31323 bytes 2 files changed, 13 insertions(+), 2 deletions(-) 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 222569dcaec5e47649e0d94fb6c282067ef8d059..e79c0424b80e5f8c3e43e6359021f4c032fd54f4 100755 GIT binary patch delta 149 zcmaF%h4Js5cNn zSs6_MQw9cxi0mIBAiDE*(!$AMGO8dYwK5