Skip to content

Commit 04b7976

Browse files
committed
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.
1 parent 0b56e9b commit 04b7976

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure

+2-1
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,8 @@ do
13801380
done
13811381

13821382
# Munge any paths that appear in config.mk back to posix-y
1383-
sed -i.bak -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' config.tmp
1383+
cp config.tmp config.tmp.bak
1384+
sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
13841385
rm -f config.tmp.bak
13851386

13861387
msg

0 commit comments

Comments
 (0)