commit ed7142f886c5262bb2247f85257352eaa65cd195
Author: Scott Kostyshak <[email protected]>
Date:   Tue Jun 3 11:48:53 2025 +0200

    lyx-tester: convenience func. to use pdflatex-dev
    
    Change converters in the LyX preferences of the ctest build
    directory to use, e.g., "pdflatex-dev" (and friends) instead of
    "pdflatex". This helps us catch and report issues in LaTeX releases
    before the actual release.
---
 development/lyx-tester/convenience-functions.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/development/lyx-tester/convenience-functions.sh 
b/development/lyx-tester/convenience-functions.sh
index 1f7684fa66..21b9fea0a0 100644
--- a/development/lyx-tester/convenience-functions.sh
+++ b/development/lyx-tester/convenience-functions.sh
@@ -10,3 +10,18 @@ function git-grep-accel-robust ()
   search_str="$( echo "$1" | sed 's/.\{1\}/&\&\\\?/g')"
   git grep -i "${search_str}"
 }
+
+
+# Change converters in the LyX preferences of the ctest build directory to use,
+# e.g., "pdflatex-dev" (and friends) instead of "pdflatex". This helps us catch
+# and report issues in LaTeX releases before the actual release.
+# TODO: make inverse function also?
+function ctest-lyx-prefs-inject-dev () {
+  prefs_f='Testing/.lyx/preferences'
+  # TODO: check if in the correct directory
+  # TODO: check if file exists
+
+  for i in "dvilualatex" "latex" "lualatex" "pdflatex" "uplatex" "xelatex"; do
+    sed -i "s/${i} -shell-escape/${i}-dev -shell-escape/" "${prefs_f}"
+  done
+}
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to