1 # Script to preprocess Versions.all lists based on "earliest version"
2 # specifications in the shlib-versions file.
5 for (i =
0; i
<=
NF - 3; ++i
)
6 firstversion
[$
1, i
] = $
(3 + i
);
11 NF ==
2 && $
2 ==
"{" { thislib = $
1; print; next }
14 if (firstversion
[thislib
, idx
[thislib
]]) {
15 # We haven't seen the stated version, but have produced
16 # others pointing to it, so we synthesize it now.
17 printf " %s\n", firstversion
[thislib
, idx
[thislib
]];
25 v = firstversion
[thislib
, idx
[thislib
]];
31 firstversion
[thislib
, idx
[thislib
]] =
0;