aboutsummaryrefslogtreecommitdiff
path: root/contrib/checkOptionDocs.pl
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-10-30 00:19:59 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-11-10 15:48:25 +0100
commit12c4bb6b62e02026529031112f389c00b1fc8196 (patch)
tree7a758d126f74fe493f115982c7562c6c71b2b635 /contrib/checkOptionDocs.pl
parent6b4db953c9c1416683da160bd2419dc0eb50e9bd (diff)
downloadtor-12c4bb6b62e02026529031112f389c00b1fc8196.tar
tor-12c4bb6b62e02026529031112f389c00b1fc8196.tar.gz
Change checkOptionDocs.pl to be case sensitive
Diffstat (limited to 'contrib/checkOptionDocs.pl')
-rwxr-xr-xcontrib/checkOptionDocs.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/checkOptionDocs.pl b/contrib/checkOptionDocs.pl
index 26fb81d04..425410d42 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 (<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;