1 # awk script for shlib-versions.v -> soversions.i; see Makeconfig.
3 # Obey the first matching DEFAULT line.
6 default_set
[++ndefault_set
] = $
0;
10 # Collect all lib lines before emitting anything, so DEFAULT
11 # can be interspersed.
15 sub(/^.
*=
/, "", number
);
16 if (lib in numbers
) next;
17 numbers
[lib
] = number
;
18 order
[lib
] =
++order_n
;
26 for (lib in numbers
) {
31 if (ndefault_set
>=
1)
34 line = set ?
(lib
FS numbers
[lib
] FS set
) : (lib
FS numbers
[lib
]);
35 if (!
(lib in lineorder
) || order
[lib
] < lineorder
[lib
]) {
36 lineorder
[lib
] = order
[lib
];
37 lines
[lib
] =
"DEFAULT" FS line
;