From 33c2cfa90829e9480a8d2213c89d71d7ebbacc1b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 9 Mar 2015 21:40:50 +0100 Subject: [PATCH] sed -i is not portable --- Makefile | 4 ++-- build/Version.php.in | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 build/Version.php.in 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 @@ +