]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Change checkOptionDocs.pl to be case sensitive
authorSebastian Hahn <sebastian@torproject.org>
Fri, 29 Oct 2010 22:19:59 +0000 (00:19 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 10 Nov 2010 14:48:25 +0000 (15:48 +0100)
contrib/checkOptionDocs.pl

index 26fb81d0493c3e820e7e023e6f652742118314fe..425410d4246277305d0735bbb276ebf3457c792b 100755 (executable)
@@ -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 (<F>) {
     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 (<F>) {
         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 (<F>) {
     if (m!^\*\*([A-Za-z0-9_]+)\*\*!) {
-        $manPageOptions{lc $1} = 1;
+        $manPageOptions{$1} = 1;
     }
 }
 close F;