diff options
Diffstat (limited to 'scripts/firstversions.awk')
-rw-r--r-- | scripts/firstversions.awk | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/firstversions.awk b/scripts/firstversions.awk index 7f1c2edf52..89bbe5e871 100644 --- a/scripts/firstversions.awk +++ b/scripts/firstversions.awk @@ -21,16 +21,19 @@ $1 == "}" { next; } -{ - v = firstversion[thislib, idx[thislib]]; +/GLIBC_PRIVATE/ { print; next } - if (! v) - print; - else if ($1 == v) { - print; - firstversion[thislib, idx[thislib]] = 0; - idx[thislib]++; +{ + if ((thislib, idx[thislib]) in firstversion) { + v = firstversion[thislib, idx[thislib]]; + if ($1 == v) { + print; + firstversion[thislib, idx[thislib]] = 0; + idx[thislib]++; + } + else + print $1, "=", v; } else - print $1, "=", v; + print; } |