5 my ($PATCHES, @patches);
7 if (/^(---|Index:|diff) .*PATCHES/) {
9 } elsif (/^(-|Index|diff)/) { # next patch
13 next if /^(===|\+\+\+|@@)/; # patch header
14 next if /^ /; # context
21 print "--- a/PATCHES\n";
22 print "+++ b/PATCHES\n";
23 print "@@ -0,0 +" . scalar (@patches) . " @@\n";