From e034841eac8e96fa255c52864be06352ee7981ae Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Sat, 28 Jan 2012 12:02:44 -0500 Subject: Fix bug in firstversions.awk version range handling. --- scripts/firstversions.awk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/firstversions.awk b/scripts/firstversions.awk index 4a20fc0..ccde4b5 100644 --- a/scripts/firstversions.awk +++ b/scripts/firstversions.awk @@ -54,9 +54,13 @@ $1 == "}" { while (vers_compare($1, v) >= 0) { delete firstversion[thislib, idx[thislib]]; idx[thislib]++; - if ((thislib, idx[thislib]) in firstversion) + if ((thislib, idx[thislib]) in firstversion) { + # If we're skipping a referenced version to jump ahead to a + # later version, synthesize the earlier referenced version now. + if (v != $1 && (thislib, v) in usedversion) + print " " v; v = firstversion[thislib, idx[thislib]]; - else + } else break; } if ($1 == v || $1 == f) -- cgit v1.1