Skip to content

Commit

Permalink
sed -i option isn't portable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
semarie committed Feb 7, 2015
1 parent 0b56e9b commit 04b7976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Expand Up @@ -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
Expand Down

0 comments on commit 04b7976

Please sign in to comment.