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);
'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';
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 '';