summaryrefslogtreecommitdiff
path: root/lib/depcomp
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-10-18 16:55:25 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-11-24 15:52:42 +0100
commit4d27453ce1fae61e4ef4a5e2f21122515e4f0260 (patch)
treed018380aadd67c36d525e13cce8575f6fd1c5189 /lib/depcomp
parentafd3bc19e09591e1e11ef46513cccd2e38382922 (diff)
downloadautomake-4d27453ce1fae61e4ef4a5e2f21122515e4f0260.tar.gz
depcomp: rewrite a sed invocation for less quoting
* lib/depcomp (dashmstdout): Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'lib/depcomp')
-rwxr-xr-xlib/depcomp2
1 files changed, 1 insertions, 1 deletions
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