]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* index-prop: New file.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 28 May 1998 01:36:06 +0000 (01:36 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 28 May 1998 01:36:06 +0000 (21:36 -0400)
From-SVN: r20112

contrib/ChangeLog
contrib/index-prop [new file with mode: 0755]

index 438accad4fb1d677e18c3ac684aeefe526a296fd..6578a4d821c1f087d481cd1fe3c921842aa6a390 100644 (file)
@@ -1,3 +1,7 @@
+1998-05-28  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * index-prop: New file.
+
 Sat May 23 23:38:49 1998  Matthias Klose  <doko@cs.tu-berlin.de>
 
        * test_summary: find good awk (copied from warn_summary).
diff --git a/contrib/index-prop b/contrib/index-prop
new file mode 100755 (executable)
index 0000000..a169b57
--- /dev/null
@@ -0,0 +1,25 @@
+#! /usr/bin/perl -wi
+# Fix up the output of cvs diff -c so that it works with patch.
+# We do this by propagating the full pathname from the Index: line
+# into the diff itself.
+#
+# Thrown together by Jason Merrill <jason@cygnus.com>
+
+while (<>)
+{
+  if (/^Index: (.*)/) 
+    {
+      $full = $1;
+      print;
+      for (1..7)
+       {
+         $_ = <>;
+         s/ [^\t]+\t/ $full\t/;
+         print;
+       }
+    }
+  else
+    {
+      print;
+    }
+}