aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/firstversions.awk5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/firstversions.awk b/scripts/firstversions.awk
index 736ef0365c..1a500f4f1d 100644
--- a/scripts/firstversions.awk
+++ b/scripts/firstversions.awk
@@ -27,7 +27,8 @@ $1 == "}" {
if ((thislib, idx[thislib]) in firstversion) {
# XXX relative string comparison loses if we ever have multiple digits
# between dots in GLIBC_x.y[.z] names.
- v = firstversion[thislib, idx[thislib]];
+ f = firstversion[thislib, idx[thislib]];
+ v = f;
while ($1 >= v) {
firstversion[thislib, idx[thislib]] = 0;
idx[thislib]++;
@@ -36,7 +37,7 @@ $1 == "}" {
else
break;
}
- if ($1 >= v)
+ if ($1 >= v || $1 == f)
print;
else
print $1, "=", v;