The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/scripts/checkhelp.pl

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #!/usr/bin/perl
    2 # checkhelp.pl - finds configuration options that have no
    3 #                corresponding section in the help file
    4 #
    5 # made by Meelis Roos (mroos@tartu.cyber.ee)
    6 
    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;
   10 
   11 #read all the files
   12 foreach $file (@ARGV)
   13 {
   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;
   26                         }
   27                 }
   28         }
   29         close (FILE);
   30 }

Cache object: 358558bd106e7b4c0413f2b7fe6bd321


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.