summaryrefslogtreecommitdiff
path: root/contrib/checkOptionDocs.pl
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-12-20 21:02:02 +0000
committerNick Mathewson <nickm@torproject.org>2006-12-20 21:02:02 +0000
commit2e1e919d65e4ffa5f93982d776706ba2533ccdb1 (patch)
treedb8d101162f4bf3dd3a3d7d7cc1b7bc0f01c889a /contrib/checkOptionDocs.pl
parentc2a4888a428d0e70c4e8acf48e3fc6e06c56335d (diff)
downloadtor-2e1e919d65e4ffa5f93982d776706ba2533ccdb1.tar.gz
tor-2e1e919d65e4ffa5f93982d776706ba2533ccdb1.zip
r11657@Kushana: nickm | 2006-12-20 15:11:19 -0500
Fixes to check-docs script; add some docs; mark some options as deprecated in the online docs. svn:r9163
Diffstat (limited to 'contrib/checkOptionDocs.pl')
-rwxr-xr-xcontrib/checkOptionDocs.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/checkOptionDocs.pl b/contrib/checkOptionDocs.pl
index 09a29294ee..d58d3375b9 100755
--- a/contrib/checkOptionDocs.pl
+++ b/contrib/checkOptionDocs.pl
@@ -12,12 +12,16 @@ my %manPageOptions = ();
my $mostRecentOption;
open(F, "./src/or/tor --list-torrc-options |") or die;
while (<F>) {
- next if m!/\[notice\] Tor v0\.!;
+ next if m!\[notice\] Tor v0\.!;
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;