summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-28 01:36:06 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-28 01:36:06 +0000
commit85ec80d3ec11939f70039105c3f227453d7e3c45 (patch)
treeeea273f46adade6f9758e1a64a3a5795542729fd /contrib
parent470d646761557aa171352d7b1ad2e9e75b27879f (diff)
downloadgcc-85ec80d3ec11939f70039105c3f227453d7e3c45.tar.gz
* index-prop: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20112 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/index-prop25
2 files changed, 29 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 438accad4fb..6578a4d821c 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -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
index 00000000000..a169b572644
--- /dev/null
+++ b/contrib/index-prop
@@ -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;
+ }
+}