* Scripts/cvs-unapply: Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9424
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-06-18 Darin Adler <darin@apple.com>
+
+ * Scripts/cvs-apply: Improve handling of patches with CR characters in them.
+ * Scripts/cvs-unapply: Ditto.
+
2005-06-17 Maciej Stachowiak <mjs@apple.com>
- added prepare-ChangeLog script which we use internally to make ChangeLogs, for
my $indexPath;
my $patch;
while (<>) {
- if (/^Index: (.*)/) {
+ s/\r//g;
+ chomp;
+ if (/^Index: (.+)/) {
$indexPath = $1;
if ($patch) {
patch($patch);
s/^\+\+\+ \S+/+++ $indexPath/;
}
$patch .= $_;
+ $patch .= "\n";
}
patch($patch);
my $indexPath;
my $patch;
while (<>) {
+ s/\r//g;
+ chomp;
if (/^Index: (.*)/) {
$indexPath = $1;
if ($patch) {
s/^\+\+\+ \S+/+++ $indexPath/;
}
$patch .= $_;
+ $patch .= "\n";
}
patch($patch);