Discussions of the Parallel Programming book
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH -perfbook 3/6] precheck-tentative.sh: Allow "v4.4a" style revision of lineno.sty
Date: Thu, 4 Jun 2026 19:15:49 +0900	[thread overview]
Message-ID: <bb76e64e-03d8-4eca-8833-d8fa86bfbe9b@gmail.com> (raw)
In-Reply-To: <238a898f-78dd-48ff-b2b8-996b477dbcf6@gmail.com>

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 <akiyks@gmail.com>
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



  parent reply	other threads:[~2026-06-04 10:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-04 10:10 [PATCH -perfbook 0/6] Updates for LaTeX2e <2026-06-01> release Akira Yokosawa
2026-06-04 10:11 ` [PATCH -perfbook 1/6] memorder: Fix typo ("`" --> " ") Akira Yokosawa
2026-06-04 10:14 ` [PATCH -perfbook 2/6] runlatex.sh: "iconv -l" rather than "iconv --list" Akira Yokosawa
2026-06-04 10:15 ` Akira Yokosawa [this message]
2026-06-04 10:17 ` [PATCH -perfbook 4/6] Get rid of "arydshln" Akira Yokosawa
2026-06-04 10:24 ` [PATCH -perfbook 5/6] Stop using "cleveref" with LaTeX2e <2024-11-01> and later Akira Yokosawa
2026-06-04 10:26 ` [PATCH -perfbook 6/6] memorder: Fix use of \cpagerefrange{}{} Akira Yokosawa
2026-06-04 17:28 ` [PATCH -perfbook 0/6] Updates for LaTeX2e <2026-06-01> release Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bb76e64e-03d8-4eca-8833-d8fa86bfbe9b@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@kernel.org \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox