1 # awk script for shlib-versions.v.i -> soversions.i; see Makeconfig.
3 # Only lines matching `config' (set with -v) are relevant to us.
6 # Obey the first matching DEFAULT line.
8 if (!matched_default
) {
16 # Collect all lib lines before emitting anything, so DEFAULT
17 # can be interspersed.
21 sub(/^.
*=
/, "", number
);
22 if (lib in numbers
) next;
23 numbers
[lib
] = number
;
31 for (lib in numbers
) {
32 set =
(lib in versions
) ? versions
[lib
] : default_setname
;
34 print lib
, numbers
[lib
], set
;
36 print lib
, numbers
[lib
];