From: Sebastian Hahn Date: Fri, 29 Oct 2010 22:19:59 +0000 (+0200) Subject: Change checkOptionDocs.pl to be case sensitive X-Git-Tag: tor-0.2.2.18-alpha~9^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12c4bb6b62e02026529031112f389c00b1fc8196;p=thirdparty%2Ftor.git Change checkOptionDocs.pl to be case sensitive --- diff --git a/contrib/checkOptionDocs.pl b/contrib/checkOptionDocs.pl index 26fb81d049..425410d424 100755 --- a/contrib/checkOptionDocs.pl +++ b/contrib/checkOptionDocs.pl @@ -8,13 +8,11 @@ my %torrcCompleteOptions = (); my %manPageOptions = (); # Load the canonical list as actually accepted by Tor. -my $mostRecentOption; open(F, "./src/or/tor --list-torrc-options |") or die; while () { next if m!\[notice\] Tor v0\.!; if (m!^([A-Za-z0-9_]+)!) { - $mostRecentOption = lc $1; - $options{$mostRecentOption} = 1; + $options{$1} = 1; } else { print "Unrecognized output> "; print; @@ -30,7 +28,7 @@ sub loadTorrc { while () { next if (m!##+!); if (m!#([A-Za-z0-9_]+)!) { - $options->{lc $1} = 1; + $options->{$1} = 1; } } close F; @@ -46,7 +44,7 @@ my $considerNextLine = 0; open(F, "./doc/tor.1.txt") or die; while () { if (m!^\*\*([A-Za-z0-9_]+)\*\*!) { - $manPageOptions{lc $1} = 1; + $manPageOptions{$1} = 1; } } close F;