print "arch= must be specified" > "/dev/stderr"
exit 1
}
- if ( ! basearch )
- basearch = arch
-
- targetLevel[ "all" ] = 1
- targetLevel[ basearch ] = 2
- targetLevel[ arch ] = 3
+ split( arch, Archs )
+ for (i = 1; i in Archs; i++) {
+ targetLevel[ Archs[ i ] ] = i
+ }
shouldDie = 0
+
+ lastFile = ""
}
function dieLater( code ) {
shouldDie = code
}
+{
+ f = FILENAME
+ sub( /^.*\//, "", f ) # strip path
+ if ( f != lastFile ) {
+ print "\n# file: " f
+ lastFile = f
+ }
+}
+
# convert special case:
# # CONFIG_SOMETHING it not set
# to:
sub( "^" option, "", line )
sub( /^[ \t]*/, "", line )
+ delete archs
if ( line ~ /"/ ) {
# there can be white spaces
i = 0