[PATCH -perfbook 3/6] precheck-tentative.sh: Allow "v4.4a" style revision of lineno.sty

Akira Yokosawa <[email protected]> Thu, 4 Jun 2026 19:15:49 +0900
Newsgroups org.kernel.vger.perfbook
Message-ID <[email protected]>
Early pre-releases of lineno.sty used "v4.33b" and v4.4b", and
hotfix releases used "v4.4a", "v4.31a", and so on.

Cope with such form of revisions.

"sort -V" has no idea of exact ordering of those minor releases,
but it should be good enough for testing ">= v5.7".

Signed-off-by: Akira Yokosawa <[email protected]>
Fixes: c9ef5ee4f94a ("precheck-tentative.sh: Detect premature versions of "lineno" and "microtype"")
---
 utilities/precheck-tentative.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/precheck-tentative.sh b/utilities/precheck-tentative.sh
index 1e106877..9c35c0aa 100755
--- a/utilities/precheck-tentative.sh
+++ b/utilities/precheck-tentative.sh
@@ -19,7 +19,7 @@ if [ "$KPSEWHICH" != "" ] ; then
 
 lineno_sty=`kpsewhich lineno.sty`
 lineno_ver=`grep -F '\def\fileversion' $lineno_sty | \
-	sed -E -e 's/.*\{(v[0-9\.]+)\}.*$/\1/'`
+	sed -E -e 's/.*\{(v[0-9a-z\.]+)\}.*$/\1/'`
 LINENO_AT_LEAST=v5.7
 linenosince=`env printf "$LINENO_AT_LEAST\n$lineno_ver" | sort -V | head -n 1`
 
-- 
2.43.0