diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-08-19 15:58:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-08-19 15:58:46 -0400 |
commit | eba3f37f17a2af4ff628dd5cbc653441e6dce6eb (patch) | |
tree | 9a37df5e95e6ed65d947cf3a1adb8f1e9e09ca0c /contrib | |
parent | 69deb22f34968d0c7e81df76157661b344cd09c9 (diff) | |
download | tor-eba3f37f17a2af4ff628dd5cbc653441e6dce6eb.tar tor-eba3f37f17a2af4ff628dd5cbc653441e6dce6eb.tar.gz |
fix up contrib/checkOptionDocs.pl to match current practice (asciidoc manpage, no "online docs").
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/checkOptionDocs.pl | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/contrib/checkOptionDocs.pl b/contrib/checkOptionDocs.pl index c2e875736..26fb81d04 100755 --- a/contrib/checkOptionDocs.pl +++ b/contrib/checkOptionDocs.pl @@ -15,12 +15,6 @@ while (<F>) { if (m!^([A-Za-z0-9_]+)!) { $mostRecentOption = lc $1; $options{$mostRecentOption} = 1; - } elsif (m!^ !) { - $descOptions{$mostRecentOption} = 1; - if (m!\{DEPRECATED\}!) { - delete $descOptions{$mostRecentOption}; - delete $options{$mostRecentOption}; - } } else { print "Unrecognized output> "; print; @@ -49,18 +43,10 @@ loadTorrc("./src/config/torrc.complete.in", \%torrcCompleteOptions); # Try to figure out what's in the man page. my $considerNextLine = 0; -open(F, "./doc/tor.1.in") or die; +open(F, "./doc/tor.1.txt") or die; while (<F>) { - if ($considerNextLine and - m!^\\fB([A-Za-z0-9_]+)!) { + if (m!^\*\*([A-Za-z0-9_]+)\*\*!) { $manPageOptions{lc $1} = 1; - next; - } - - if (m!^\.(?:SH|TP|PP)!) { - $considerNextLine = 1; next; - } else { - $considerNextLine = 0; } } close F; @@ -77,7 +63,7 @@ sub subtractHashes { 0; } -subtractHashes("No online docs", \%options, \%descOptions); +# subtractHashes("No online docs", \%options, \%descOptions); # subtractHashes("Orphaned online docs", \%descOptions, \%options); subtractHashes("Not in torrc.complete.in", \%options, \%torrcCompleteOptions); |