From: Michael Wallner Date: Mon, 9 Mar 2015 20:40:50 +0000 (+0100) Subject: sed -i is not portable X-Git-Tag: v2.0.0~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=33c2cfa90829e9480a8d2213c89d71d7ebbacc1b;p=pharext%2Fpharext sed -i is not portable --- diff --git a/Makefile b/Makefile index 4ce9cea..9697343 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,11 @@ release: @echo "Previous Version: $$(git tag --list | tail -n1)"; \ read -p "Release Version: v" VERSION; \ echo "Preparing release ... "; \ - sed -i '' -e "s/@PHAREXT_VERSION@/$$VERSION/" src/pharext/Version.php && \ + sed -e "s/@PHAREXT_VERSION@/$$VERSION/" build/Version.php.in > src/pharext/Version.php && \ $(MAKE) -B SIGN=1 && \ git ci -am "release v$$VERSION" && \ git tag v$$VERSION && \ - sed -i '' -e "s/$$VERSION/@PHAREXT_VERSION@/" src/pharext/Version.php && \ + cp build/Version.php.in src/pharext/Version.php && \ git ci -am "back to dev" .PHONY: all clean test release diff --git a/build/Version.php.in b/build/Version.php.in new file mode 100644 index 0000000..50a2875 --- /dev/null +++ b/build/Version.php.in @@ -0,0 +1,5 @@ +