From: Stefano Lattarini Date: Thu, 18 Oct 2012 14:55:25 +0000 (+0200) Subject: depcomp: rewrite a sed invocation for less quoting X-Git-Tag: v1.12b~13^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d27453ce1fae61e4ef4a5e2f21122515e4f0260;p=thirdparty%2Fautomake.git depcomp: rewrite a sed invocation for less quoting * lib/depcomp (dashmstdout): Here. Signed-off-by: Stefano Lattarini --- diff --git a/lib/depcomp b/lib/depcomp index 221a80ceb..8cd39b06c 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -627,7 +627,7 @@ dashmstdout) # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | - sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" + sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation