X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/55ddf00bc2f14f9ba42adf38b20f9da7a7807f4c..d4dd2dd52f48a66395428810389ef31cc0488db7:/verify-patches diff --git a/verify-patches b/verify-patches index 64ae506..d6d7c3a 100755 --- a/verify-patches +++ b/verify-patches @@ -2,6 +2,7 @@ use strict; use Getopt::Long; +use Cwd; my @generated_files = qw( proto.h configure config.h.in rsync.1 rsyncd.conf.5 ); @@ -31,6 +32,8 @@ from inside the patches subdir. EOT } +my $patches_dir = Cwd::cwd(); + $ENV{'LC_COLLATE'} = 'C'; $| = 1; my $CONF_OPTS = '--cache-file=../config.cache'; @@ -51,7 +54,8 @@ close IN; mkdir('tmp', 0777) unless -d 'tmp'; chdir('tmp') or die "Unable to chdir to 'tmp'"; -symlink('..', 'patches') unless -d 'patches'; +unlink('patches'); +symlink($patches_dir, 'patches'); symlink($$, 'lock') or die "Unable to create lock file: $!\n"; @@ -268,7 +272,7 @@ sub generate_new_patch # These are not included in the diff above so that patch will give # generated files a later timestamp than the source files. foreach my $fn (@generated_files) { - &filter_diff("diff -dup cvsdir/$fn workdir"); + &filter_diff("diff -dupW128 cvsdir/$fn workdir"); } } close OUT;