release target
[pharext/pharext] / Makefile
index cf19520418200fc554b77b8694d01a6fbd36859e..8414513b650139c2a831b132fa581f4767c0e5a2 100644 (file)
--- 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