- Added a short option (-a) for --auto-cmd.
authorWayne Davison <wayned@samba.org>
Wed, 8 Feb 2006 17:32:48 +0000 (17:32 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 8 Feb 2006 17:32:48 +0000 (17:32 +0000)
- Made the --auto-cmd REGEX a case-insensitive match.

verify-patches

index 4ab2242..f08f198 100755 (executable)
@@ -15,10 +15,10 @@ GetOptions(
     'minor-updates|u' => \$minor_updates,
     'prepare-source|p' => \$prepare_source,
     'require-quit|Q' => \$require_quit,
-    'auto-cmd=s' => \$auto_cmd,
+    'auto-cmd|a=s' => \$auto_cmd,
 ) or &usage;
 
-$auto_cmd = qr/^($auto_cmd)$/;
+$auto_cmd = qr/^($auto_cmd)$/i;
 
 my $interesting_fuzz = $minor_updates ? '\d' : '[2-9]';
 
@@ -289,7 +289,7 @@ sub usage
 {
     die <<EOT;
 Usage: $0 [OPTS] [DIFF-FILE...]
    --auto-cmd=REGEX  If default_cmd =~ /^(REGEX)\$/, enter it automatically
-a, --auto-cmd=REGEX  If default_cmd =~ /^(REGEX)\$/, enter it automatically
  -f, --failures-only   Suggest skipping patches that don't have failing hunks
  -n, --no-cvs          Don't update tmp/cvsdir at the start of the run
  -p, --prepare-source  Run ./prepare-source and include generated files in diff