From 648eb961858d1f108dc6fedfc82c869763bc8d65 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 26 Oct 2007 23:55:32 +0000 Subject: [PATCH] Make sure that the back-referencing "patches" symlink is always right. --- verify-patches | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/verify-patches b/verify-patches index 64ae506..67698cd 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"; -- 2.34.1