1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

find_unused_doc: Strip spaces in configuration names, just like the parser does.

This commit is contained in:
Jelmer Vernooij 2009-05-01 22:58:39 +02:00
parent cc6a5d57ea
commit 78bfc60288

View File

@ -15,7 +15,9 @@ open(IN,"xsltproc --xinclude --param smb.context ALL generate-context.xsl parame
while(<IN>) {
if( /<samba:parameter .*?name="([^"]*?)"/g ){
$doc{$1} = "NOTFOUND";
my $name = $1;
$name =~ s/ //g;
$doc{$name} = "NOTFOUND";
}
}
@ -39,10 +41,13 @@ while ($ln = <SOURCE>) {
next if $ln =~ m/.*P_SEPARATOR.*/;
next unless $ln =~ /\s*\.label\s*=\s*\"(.*)\".*/;
if($doc{lc($1)}) {
$doc{lc($1)} = "FOUND";
my $name = $1;
$name =~ s/ //g;
if($doc{lc($name)}) {
$doc{lc($name)} = "FOUND";
} else {
print "'$1' is not documented\n";
print "'$name' is not documented\n";
}
}
close SOURCE;