automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC 14/20] depcomp: rewrite a sed invocation for less quoting


From: Stefano Lattarini
Subject: [RFC 14/20] depcomp: rewrite a sed invocation for less quoting
Date: Thu, 18 Oct 2012 22:40:48 +0200

* lib/depcomp (dashmstdout): Here.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/depcomp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/depcomp b/lib/depcomp
index 23d9d77..9a8f42a 100755
--- a/lib/depcomp
+++ b/lib/depcomp
@@ -620,7 +620,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
-- 
1.8.0.rc2.11.gd25c58c




reply via email to

[Prev in Thread] Current Thread [Next in Thread]