]> sourceware.org Git - automake.git/commitdiff
2000-06-02 Morten Eriksen <mortene@sim.no>
authorTom Tromey <tromey@redhat.com>
Fri, 2 Jun 2000 23:27:02 +0000 (23:27 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 2 Jun 2000 23:27:02 +0000 (23:27 +0000)
        * depcomp: workaround for problem with SGI IRIX sed (it can only
        handle lines of up to 8192 characters, the rest of the line will
        be mangled).

ChangeLog
depcomp
lib/depcomp

index 38d0f8577836a6d9e7d094aa0a2b403da0191350..bf6032e30c798e2af627664a53d549993c95a813 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-06-02  Morten Eriksen  <mortene@sim.no>
+
+        * depcomp: workaround for problem with SGI IRIX sed (it can only
+        handle lines of up to 8192 characters, the rest of the line will
+        be mangled).
+
 2000-05-31  Morten Eriksen  <mortene@sim.no>
 
         * depcomp: tell SGI MIPSpro compilers to generate dependencies
diff --git a/depcomp b/depcomp
index 757ee998eba1a8b0f83ed2eaa92a3b044cc7ef17..2e77741ed2e776d65624a32710f0f6e7490e50dd 100755 (executable)
--- a/depcomp
+++ b/depcomp
@@ -123,7 +123,14 @@ sgi)
   fi
   rm -f "$depfile" 
   echo "$object : \\" > "$depfile"
-  sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+
+  # Clip off the initial element (the dependent). Don't try to be
+  # clever and remove the tr invocations, as IRIX sed won't handle
+  # lines with more than 8192 characters.
+  tr ' ' '
+' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr '
+' ' ' >> $depfile
+
   tr ' ' '
 ' < "$tmpdepfile" | \
 ## Some versions of the HPUX 10.20 sed can't process this invocation
index 757ee998eba1a8b0f83ed2eaa92a3b044cc7ef17..2e77741ed2e776d65624a32710f0f6e7490e50dd 100755 (executable)
@@ -123,7 +123,14 @@ sgi)
   fi
   rm -f "$depfile" 
   echo "$object : \\" > "$depfile"
-  sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+
+  # Clip off the initial element (the dependent). Don't try to be
+  # clever and remove the tr invocations, as IRIX sed won't handle
+  # lines with more than 8192 characters.
+  tr ' ' '
+' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr '
+' ' ' >> $depfile
+
   tr ' ' '
 ' < "$tmpdepfile" | \
 ## Some versions of the HPUX 10.20 sed can't process this invocation
This page took 0.032169 seconds and 5 git commands to generate.