use strict;
use Getopt::Long;
+use Cwd;
my @generated_files = qw( proto.h configure config.h.in rsync.1 rsyncd.conf.5 );
EOT
}
+my $patches_dir = Cwd::cwd();
+
$ENV{'LC_COLLATE'} = 'C';
$| = 1;
my $CONF_OPTS = '--cache-file=../config.cache';
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";
# 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;