7 bin
/pharext
: src
/* src
/pharext
/*
8 @echo
"Linting changed source files ... "
9 @for file in
$?
; do php
-l
$$file | sed
-ne
'/^No syntax errors/!p' && exit
$${PIPESTATUS
[0]}; done
10 @echo
"Creating bin/pharext ... "
11 php
-d phar.readonly
=0 build
/create-phar.php
15 @echo
"Running tests ... "
22 @echo
"Previous Version: $$(git tag --list | tail -n1)"; \
23 read
-p
"Release Version: v" VERSION
; \
24 echo
"Preparing release ... "; \
25 sed
-i
'' -e
"s/@PHAREXT_VERSION@/$$VERSION/" src
/pharext
/Version.php
; \
27 git ci
-am
"release v$$VERSION"; \
29 sed
-i
'' -e
"s/$$VERSION/@PHAREXT_VERSION@/" src
/pharext
/Version.php
; \
30 git ci
-am
"back to dev"
33 .PHONY
: all clean test release