patch-2.4.5 linux/scripts/checkconfig.pl
Next file: linux/CREDITS
Previous file: linux/scripts/Menuconfig
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sat May 19 17:47:55 2001
- Orig file:
v2.4.4/linux/scripts/checkconfig.pl
- Orig date:
Mon Jan 15 15:31:19 2001
diff -u --recursive --new-file v2.4.4/linux/scripts/checkconfig.pl linux/scripts/checkconfig.pl
@@ -25,6 +25,13 @@
$fInComment && (s+^.*?\*/+ +o ? ($fInComment = 0) : next);
m+/\*+o && (s+/\*.*?\*/+ +go, (s+/\*.*$+ +o && ($fInComment = 1)));
+ # Pick up definitions.
+ if ( m/^\s*#/o )
+ {
+ $iLinuxConfig = $. if m/^\s*#\s*include\s*"linux\/config\.h"/o;
+ $configList{uc $1} = 1 if m/^\s*#\s*include\s*"config\/(\S*)\.h"/o;
+ }
+
# Strip strings.
$fInString && (s+^.*?"+ +o ? ($fInString = 0) : next);
m+"+o && (s+".*?"+ +go, (s+".*$+ +o && ($fInString = 1)));
@@ -52,7 +59,7 @@
# Report superfluous includes.
if ( $iLinuxConfig && ! $fUseConfig )
- { print "$file: $iLinuxConfig: <linux/config.h> not needed.\n"; }
+ { print "$file: $iLinuxConfig: linux/config.h not needed.\n"; }
close(FILE);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)