From d25d871b475d97c49d63b72ee6c6588c3848ea38 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 15 Feb 2006 17:34:20 +0000 Subject: [PATCH] Fixed a problem joining multiple .rej names in the edit command. --- verify-patches | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/verify-patches b/verify-patches index 219a2ae..91eebbe 100755 --- a/verify-patches +++ b/verify-patches @@ -3,8 +3,6 @@ use strict; use Getopt::Long; -$" = '|'; # NOTE: we auto-join arrays using '|' instead of space! - my @generated_files = qw( proto.h configure config.h.in rsync.1 rsyncd.conf.5 ); my($no_cvs, $failures_only, $minor_updates, $prepare_source); @@ -19,8 +17,10 @@ GetOptions( 'auto-cmd|a=s' => sub { push(@auto_cmds, $_[1]) }, ) or &usage; +$" = '|'; my $auto_regex = @auto_cmds ? qr/^(@auto_cmds)$/i : qr/^never$/; my $interesting_fuzz = $minor_updates ? '\d' : '[2-9]'; +$" = ' '; chdir('patches') if -d 'patches'; @@ -120,7 +120,9 @@ foreach my $diff (@ARGV) { chomp $input; if ($input =~ s/^(-a|--auto-cmd=?)\s*//) { push(@auto_cmds, $input eq '' ? $default : $input); + $" = '|'; $auto_regex = qr/^(@auto_cmds)$/i; + $" = ' '; next; } $ans = $input if $input ne ''; -- 2.34.1