summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2f92f70)
Changed files:
kernel-track-config-change.awk -> 1.5
print "infile= must be specified" > "/dev/stderr"
exit 1
}
file = ""
print "infile= must be specified" > "/dev/stderr"
exit 1
}
file = ""
- while ( getline < infile ) {
+ while ((rc = getline < infile) > 0) {
- if ( match( $0, /^# CONFIG_[A-Za-z0-9_]+ is not set$/ ) ) {
+ if ( match($0, /^# CONFIG_[A-Za-z0-9_]+ is not set$/)) {
- } else if ( match( $0, /^CONFIG_[A-Za-z0-9_]+=/ ) ) {
+ } else if (match($0, /^CONFIG_[A-Za-z0-9_]+=/)) {
- sub( /=.*$/, "", name )
- sub( /^[^=]*=/, "", value )
- } else if ( match( $0, /^# file:/ ) ) {
+ sub(/=.*$/, "", name)
+ sub(/^[^=]*=/, "", value)
+ } else if (match($0, /^# file:/)) {
- if ( length( name ) ) {
- optionArray[ name ] = value
- optionFile[ name ] = file
+ if (length(name)) {
+ optionArray[name] = value
+ optionFile[name] = file
+ if (rc == -1) {
+ printf("Error reading infile='%s'\n", infile) > "/dev/stderr"
+ exit 1
+ }