Fix syscall tracing.
[linux-2.6/linux-mips.git] / scripts / checkhelp.pl
blobe765233259e2951b53d945746b9a6edd7f807e44
1 #!/usr/bin/perl
2 # checkhelp.pl - finds configuration options that have no
3 # corresponding section in the help file
5 # made by Meelis Roos (mroos@tartu.cyber.ee)
7 # read the help file
8 @options=split /\n/, `grep '^CONFIG' Documentation/Configure.help`;
9 die "Can't read Documentation/Configure.help\n" if $#options == -1;
11 #read all the files
12 foreach $file (@ARGV)
14 open (FILE, $file) || die "Can't open $file: $!\n";
15 while (<FILE>) {
16 # repeat until no CONFIG_* are left
17 while (/^\s*(bool|tristate|dep_tristate|string|int|hex).*' *(.*)'.*(CONFIG_\w*)/) {
18 $what=$3;
19 $name=$2;
20 s/$3//;
21 @found = grep (/$what$/, @options);
22 if ($#found == -1) {
23 next if $nohelp{$what};
24 print "$name\n$what\n No help for $what\n\n";
25 $nohelp{$what}=1;
29 close (FILE);