From fdeff4adfd93911260438e5e95b534e41970d0bf Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 30 Apr 2019 22:38:25 +0000 Subject: lwarp (29apr19) git-svn-id: svn://tug.org/texlive/trunk@50914 c570f23f-e606-0410-a88d-b1316a301751 --- .../texk/texlive/linked_scripts/lwarp/lwarpmk.lua | 29 ++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua b/Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua index 39c4a9e0bf5..6a88ea8d90d 100755 --- a/Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua +++ b/Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua @@ -2,7 +2,7 @@ -- Copyright 2016-2018 Brian Dunn -printversion = "v0.70" +printversion = "v0.71" requiredconfversion = "2" -- also at *lwarpmk.conf function printhelp () @@ -79,6 +79,20 @@ function cvalueerror ( line, linenum , cvalue ) os.exit(1) ; end +function printhowtorecompile () +-- Tells the user how to recompile to regenerate the configuration files. + print ("lwarpmk: The configuration files lwarpmk.conf and "..sourcename..".lwarpmkconf" ) + print ("lwarpmk: must be updated. To do so, recompile" ) + print ("lwarpmk: " , sourcename..".tex" ) + if ( printlatexcmd == "" ) then + print ("lwarpmk: using xe/lua/pdflatex," ) + else + print ("lwarpmk: using the command:") + print ("lwarpmk: " , printlatexcmd ) + end + print ("lwarpmk: then use lwarpmk again.") +end -- printhowtorecompile + function ignoreconf () -- Global argument index argindex = 2 @@ -240,19 +254,14 @@ end --- for Windows if ( (package.config:sub(1,1)) ~= dirslash ) then print ("lwarpmk: ===") print ("lwarpmk: It appears that lwarpmk.conf is for a different operating system." ) - print ("lwarpmk: To adjust lwarpmk.conf for the current operating system," ) - print ("lwarpmk: recompile the original document using xe/lua/pdflatex." ) - print ("lwarpmk: ") - print ("lwarpmk: lwarpmk shall attempt to continue...") + printhowtorecompile () print ("lwarpmk: ===") + os.exit(1) end -- Error if the configuration file's version is not current: if ( confversion ~= requiredconfversion ) then print ("lwarpmk: ===") - print ("lwarpmk: The configuration files lwarpmk.conf and "..sourcename..".lwarpmkconf" ) - print ("lwarpmk: must be updated. To update the configuration files," ) - print ("lwarpmk: recompile "..sourcename..".tex using xe/lua/pdflatex," ) - print ("lwarpmk: then use lwarpmk again.") + printhowtorecompile () print ("lwarpmk: ===") os.exit(1) end @@ -556,7 +565,7 @@ function createlateximages () -- -- See if the document must be recompiled first: checklimages () --- See if the print version exists: +-- See if the HTML version exists: checkhtmlpdfexists () -- Attempt to create the lateximages: print ("lwarpmk: Creating lateximages.") -- cgit v1.2.3