aboutsummaryrefslogtreecommitdiffstats
path: root/test/plugin_relx.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-10-28 19:41:25 +0300
committerLoïc Hoguin <[email protected]>2016-10-28 19:41:25 +0300
commit1e193d7c2bd082f252074b6789e03a96b2d0fb49 (patch)
tree0b715be045d072a03ab31ea80f4733071f5c910b /test/plugin_relx.mk
parent20f480531e0caafcb1f988eaadea1b3b6a3caf72 (diff)
downloaderlang.mk-1e193d7c2bd082f252074b6789e03a96b2d0fb49.tar.gz
erlang.mk-1e193d7c2bd082f252074b6789e03a96b2d0fb49.tar.bz2
erlang.mk-1e193d7c2bd082f252074b6789e03a96b2d0fb49.zip
Make the relx tests work on FreeBSD/OSX
Diffstat (limited to 'test/plugin_relx.mk')
-rw-r--r--test/plugin_relx.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/plugin_relx.mk b/test/plugin_relx.mk
index 0afdce1..c3cdea4 100644
--- a/test/plugin_relx.mk
+++ b/test/plugin_relx.mk
@@ -57,7 +57,7 @@ relx-relup: build clean
$i "Set the initial application version"
ifeq ($(LEGACY),1)
- $t sed -i s/"{vsn, \"0.1.0\"}"/"{vsn, \"1\"}"/ $(APP)/src/$(APP).app.src
+ $t sed -i.bak s/"{vsn, \"0.1.0\"}"/"{vsn, \"1\"}"/ $(APP)/src/$(APP).app.src
else
$t echo "PROJECT_VERSION = 1" >> $(APP)/Makefile
endif
@@ -72,13 +72,13 @@ endif
$t $(MAKE) -C $(APP) $v
$i "Update the test module"
- $t sed -i s/"test() -> old."/"test() -> new."/ $(APP)/src/test.erl
+ $t sed -i.bak s/"test() -> old."/"test() -> new."/ $(APP)/src/test.erl
$i "Bump the application version"
ifeq ($(LEGACY),1)
- $t sed -i s/"{vsn, \"1\"}"/"{vsn, \"2\"}"/ $(APP)/src/$(APP).app.src
+ $t sed -i.bak s/"{vsn, \"1\"}"/"{vsn, \"2\"}"/ $(APP)/src/$(APP).app.src
else
- $t sed -i s/"PROJECT_VERSION = 1"/"PROJECT_VERSION = 2"/ $(APP)/Makefile
+ $t sed -i.bak s/"PROJECT_VERSION = 1"/"PROJECT_VERSION = 2"/ $(APP)/Makefile
endif
$i "Generate a .appup for the application"
@@ -89,7 +89,7 @@ endif
"}." > $(APP)/ebin/$(APP).appup
$i "Bump the release version"
- $t sed -i s/"1"/"2"/ $(APP)/relx.config
+ $t sed -i.bak s/"1"/"2"/ $(APP)/relx.config
$i "Build a new release with a relup as a tarball"
$t $(MAKE) -C $(APP) relup $v