diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-05-28 01:36:06 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-05-27 21:36:06 -0400 |
commit | be3a14bbbb8b161df688059270fe67cf498cfa14 (patch) | |
tree | eea273f46adade6f9758e1a64a3a5795542729fd /contrib/index-prop | |
parent | 67cf6db6a0062aed0f6b8182b4146611bc720930 (diff) | |
download | gcc-be3a14bbbb8b161df688059270fe67cf498cfa14.zip gcc-be3a14bbbb8b161df688059270fe67cf498cfa14.tar.gz gcc-be3a14bbbb8b161df688059270fe67cf498cfa14.tar.bz2 |
* index-prop: New file.
From-SVN: r20112
Diffstat (limited to 'contrib/index-prop')
-rwxr-xr-x | contrib/index-prop | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/index-prop b/contrib/index-prop new file mode 100755 index 0000000..a169b57 --- /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; + } +} |