aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-28 12:07:57 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-28 12:07:57 -0400
commit3266f04925b871519f3193890edb5c40f4be0b39 (patch)
treee2d37422833172a4968fb3727d986e934bf37f00 /scripts
parent9b825ffc4ffbff946a1fc7f5a4cfedf8e5317e79 (diff)
downloadtor-3266f04925b871519f3193890edb5c40f4be0b39.tar
tor-3266f04925b871519f3193890edb5c40f4be0b39.tar.gz
Fix the check-docs script
We broke it when we added anchors to the manpage. This patch fixes it, and makes it sorta detect missing anchors.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/checkOptionDocs.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/maint/checkOptionDocs.pl b/scripts/maint/checkOptionDocs.pl
index 23e57b489..94307c6ce 100755
--- a/scripts/maint/checkOptionDocs.pl
+++ b/scripts/maint/checkOptionDocs.pl
@@ -41,8 +41,9 @@ loadTorrc("./src/config/torrc.sample.in", \%torrcSampleOptions);
my $considerNextLine = 0;
open(F, "./doc/tor.1.txt") or die;
while (<F>) {
- if (m!^\*\*([A-Za-z0-9_]+)\*\*!) {
- $manPageOptions{$1} = 1;
+ if (m!^(?:\[\[([A-za-z0-9_]+)\]\] *)?\*\*([A-Za-z0-9_]+)\*\*!) {
+ $manPageOptions{$2} = 1;
+ print "Missing an anchor: $2\n" unless (defined $1 or $2 eq 'tor');
}
}
close F;