[latex3-commits] [git/LaTeX3-latex3-l3build] main: Use plural `ps2pdfopts` in code (5f3c6d1)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 22 12:23:52 CET 2023


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/5f3c6d19d73bc2c3b40d7816412b589657c4efb1

>---------------------------------------------------------------

commit 5f3c6d19d73bc2c3b40d7816412b589657c4efb1
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Wed Feb 22 18:46:31 2023 +0800

    Use plural `ps2pdfopts` in code


>---------------------------------------------------------------

5f3c6d19d73bc2c3b40d7816412b589657c4efb1
 CHANGELOG.md            | 2 ++
 l3build-typesetting.lua | 2 +-
 l3build-variables.lua   | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index aaf0fdf..dc3ce33 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,8 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Fixed
 - Restore epoch settings for `dvitopdf()`
+- Use plural form of variable `ps2pdfopts` consistently in code and doc, and 
+  retain compatibility with singular form `ps2pdfopt` (issue #275)
 
 ## [2023-02-20]
 
diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua
index 1c77b9b..2a7dbad 100644
--- a/l3build-typesetting.lua
+++ b/l3build-typesetting.lua
@@ -61,7 +61,7 @@ function dvitopdf(name, dir, engine, hide)
     "dvips " .. name .. dviext
       .. (hide and (" > " .. os_null) or "")
       .. os_concat ..
-    "ps2pdf " .. ps2pdfopt .. name .. psext
+    "ps2pdf " .. ps2pdfopts .. name .. psext
       .. (hide and (" > " .. os_null) or ""),
     dir
   )
diff --git a/l3build-variables.lua b/l3build-variables.lua
index 51f9270..ce07d1f 100644
--- a/l3build-variables.lua
+++ b/l3build-variables.lua
@@ -193,7 +193,8 @@ if flattentds == nil then
 end
 maxprintline = maxprintline or 79
 packtdszip   = packtdszip   or false
-ps2pdfopt    = ps2pdfopt    or ""
+-- support "ps2pdfopt" for backward compatibility, gh issue #275
+ps2pdfopts   = ps2pdfopts   or ps2pdfopt or ""
 typesetcmds  = typesetcmds  or ""
 typesetruns  = typesetruns  or 3
 recordstatus = recordstatus or false





More information about the latex3-commits mailing list.