From 34885eea71088fe680b398df2ab18013dc1c1579 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 20 Sep 2017 14:31:57 -0400 Subject: Make sed calls portable (#69) --- cubeviz/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cubeviz/build.sh b/cubeviz/build.sh index e5a977a..14c64d7 100644 --- a/cubeviz/build.sh +++ b/cubeviz/build.sh @@ -1,3 +1,9 @@ # Replace malformed pytest requirement with something sane -sed -i .bad -e 's/pytest==*/pytest>=3.1.0/' setup.py setup.cfg +pytest_pattern='s/pytest==*/pytest>=3.1.0/' +for f in setup.* +do + sed -e ${pytest_pattern} "${f}" > "${f}.new" + mv "${f}.new" "${f}" +done + $PYTHON setup.py install -- cgit