mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 04:23:37 +00:00
Auto merge of #22041 - semarie:configure-compat, r=alexcrichton
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.
This commit is contained in:
commit
95b228ab95
3
configure
vendored
3
configure
vendored
|
@ -1379,7 +1379,8 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Munge any paths that appear in config.mk back to posix-y
|
# 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
|
rm -f config.tmp.bak
|
||||||
|
|
||||||
msg
|
msg
|
||||||
|
|
Loading…
Reference in a new issue