]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
depcomp: correct invalid sed invocation
authorJim Meyering <meyering@redhat.com>
Sat, 16 Apr 2011 09:55:46 +0000 (11:55 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 16 Apr 2011 10:48:43 +0000 (12:48 +0200)
* lib/depcomp: Insert missing -e before '/:$/d'.
Otherwise, that use of sed would treat '/:$/d' as a file name.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
lib/depcomp

index 20862eaced7d7bd9fb8442642f7818b4c21ac5bc..78514938deb2f8690c52b899bc1c5dfdab929f60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-16  Jim Meyering  <meyering@redhat.com>
+
+       depcomp: correct invalid sed invocation
+       * lib/depcomp: Insert missing -e before '/:$/d'.
+       Otherwise, that use of sed would treat '/:$/d' as a file name.
+
 2011-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        depcomp: fix bugs in tests and in the depcomp script
 
 -----
 
-Copyright (C) 2010  Free Software Foundation, Inc.
+Copyright (C) 2010, 2011  Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification, are
 permitted provided the copyright notice and this notice are preserved.
index 82ebc751f1b2ac16bbe14787c50690ebe4b67072..2fe40a94be43efee9bc390f889b8842ab4af479a 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # depcomp - compile a program generating dependencies as side-effects
 
-scriptversion=2011-04-11-10; # UTC
+scriptversion=2011-04-16.09; # UTC
 
 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2011,
 # Free Software Foundation, Inc.
@@ -162,7 +162,7 @@ gcc)
 ## to the object.  Take care to not repeat it in the output.
 ## Some versions of the HPUX 10.20 sed can't process this invocation
 ## correctly.  Breaking it into two sed invocations is a workaround.
-    sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" '/:$/d' \
+    sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
       | sed -e 's/$/ :/' >> "$depfile"
   rm -f "$tmpdepfile"
   ;;