]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
depcomp: rewrite a sed invocation for less quoting
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 18 Oct 2012 14:55:25 +0000 (16:55 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 24 Nov 2012 14:52:42 +0000 (15:52 +0100)
* lib/depcomp (dashmstdout): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/depcomp

index 221a80ceb446027fcce0907704b51743c15509db..8cd39b06c019ffe870dd4c0a36da1ba179d9270f 100755 (executable)
@@ -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