From a71200150bd7e5dfd777fdca916f138ab69ea71a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 9 Jul 2010 11:01:22 +0200 Subject: checkopts.pl: Update for new options.c layout --- scripts/checkopts.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/checkopts.pl b/scripts/checkopts.pl index 2c64415..ec82343 100755 --- a/scripts/checkopts.pl +++ b/scripts/checkopts.pl @@ -9,7 +9,7 @@ my $options; open(my $c_fh, '<', 'src/options.c') or die("Can't read options.c: $!"); while (my $line = <$c_fh>) { - if ($line =~ /\{"(?[\w-]+)",.*,\s*(?:'(?.)'|(?\d+))\}/o) { + if ($line =~ /\{"(?[\w-]+)"\s*,.*,\s*(?:'(?.)'|(?\d+))\}/o) { push(@{$options->{$+{long}}}, ['source', $+{short}]); } } -- cgit v1.2.3