summaryrefslogtreecommitdiff
path: root/scripts/checkopts.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-07-09 11:01:22 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-07-09 11:01:22 +0200
commita71200150bd7e5dfd777fdca916f138ab69ea71a (patch)
treeb541d639e6cc783596f852ebc0cd8aae0b4ee55e /scripts/checkopts.pl
parent33813996359509f9c8edcb8d23e7cc18fd92b0e6 (diff)
downloadfeh-a71200150bd7e5dfd777fdca916f138ab69ea71a.zip
checkopts.pl: Update for new options.c layout
Diffstat (limited to 'scripts/checkopts.pl')
-rwxr-xr-xscripts/checkopts.pl2
1 files changed, 1 insertions, 1 deletions
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 =~ /\{"(?<long>[\w-]+)",.*,\s*(?:'(?<short>.)'|(?<short>\d+))\}/o) {
+ if ($line =~ /\{"(?<long>[\w-]+)"\s*,.*,\s*(?:'(?<short>.)'|(?<short>\d+))\}/o) {
push(@{$options->{$+{long}}}, ['source', $+{short}]);
}
}