release target
authorMichael Wallner <mike@php.net>
Thu, 5 Mar 2015 14:35:32 +0000 (15:35 +0100)
committerMichael Wallner <mike@php.net>
Thu, 5 Mar 2015 15:00:55 +0000 (16:00 +0100)
Makefile
bin/pharext

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
index 222569dcaec5e47649e0d94fb6c282067ef8d059..e79c0424b80e5f8c3e43e6359021f4c032fd54f4 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ