5 print "infile= must be specified" > "/dev/stderr"
10 while ( getline < infile ) {
12 if ( match( $0, /^# CONFIG_[A-Za-z0-9_]+ is not set$/ ) ) {
15 } else if ( match( $0, /^CONFIG_[A-Za-z0-9_]+=/ ) ) {
18 sub( /=.*$/, "", name )
19 sub( /^[^=]*=/, "", value )
20 } else if ( match( $0, /^# file:/ ) ) {
23 if ( length( name ) ) {
24 optionArray[ name ] = value
25 optionFile[ name ] = file
37 /^# CONFIG_[A-Za-z0-9_]+ is not set$/ {
42 /^CONFIG_[A-Za-z0-9_]+=/ {
45 sub( /=.*$/, "", name )
46 sub( /^[^=]*=/, "", value )
50 if ( ! length( name ) )
53 orig = optionArray[ name ]
55 #print "Warning: new option " name " with value " value
57 if ( value != orig ) {
58 print "ERROR (" optionFile[ name ] "): " name \
59 " redefined from `" orig "' to `" value "'" > "/dev/stderr"
67 print "There were " foundErrors " errors" > "/dev/stderr"