about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2015-02-07 08:55:37 +0100
committerSébastien Marie <semarie@users.noreply.github.com>2015-02-07 08:55:37 +0100
commit04b7976c2f069335483455de396ba2579b0305e2 (patch)
tree0f9340a25e9f5ff5b628f39adf3f8561e3dc2dd4
parent0b56e9b1cb2fc00d7d9bc044e2a78b8fb12f2f1b (diff)
downloadrust-04b7976c2f069335483455de396ba2579b0305e2.tar.gz
rust-04b7976c2f069335483455de396ba2579b0305e2.zip
sed -i option isn't portable
the sed option `--in-place` (or `-i`) is a GNU extension, and it is not
portable to BSD system (openbsd and freebsd checked).

use an alternate construction in order to keep the semantic.
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 2127f2c656d..308e174f9a0 100755
--- a/configure
+++ b/configure
@@ -1380,7 +1380,8 @@ do
 done
 
 # Munge any paths that appear in config.mk back to posix-y
-sed -i.bak -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' config.tmp
+cp config.tmp config.tmp.bak
+sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
 rm -f config.tmp.bak
 
 msg