From 1ebb33e9902b2a96b03f5cd15dcf3f6c561f19ef Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 27 Aug 2017 23:56:09 +0000 Subject: lwarp (27aug17) git-svn-id: svn://tug.org/texlive/trunk@45144 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/lwarp/lwarpmk.lua | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/scripts/lwarp') diff --git a/Master/texmf-dist/scripts/lwarp/lwarpmk.lua b/Master/texmf-dist/scripts/lwarp/lwarpmk.lua index 42a7da2e06b..4e2a99cd3dd 100755 --- a/Master/texmf-dist/scripts/lwarp/lwarpmk.lua +++ b/Master/texmf-dist/scripts/lwarp/lwarpmk.lua @@ -4,7 +4,7 @@ -- Print the usage of the lwarpmk command: -printversion = "v0.37" +printversion = "v0.38" function printhelp () print ("lwarpmk: Use lwarpmk -h or lwarpmk --help for help.") ; @@ -13,10 +13,12 @@ end function printusage () print ( [[ -lwarpmk print [project]: Compile a print version. +lwarpmk print [project]: Compile the print version if necessary. +lwarpmk print1 [project]: Forced single compile of the print version. lwarpmk printindex [project]: Process the index for the print version. lwarpmk printglossary [project]: Process the glossary for the print version. -lwarpmk html [project]: Compile an HTML version. +lwarpmk html [project]: Compile the HTML version if necessary. +lwarpmk html1 [project]: Forced single compile of the HTML version. lwarpmk htmlindex [project]: Process the index for the html version. lwarpmk htmlglossary [project]: Process the glossary for the html version. lwarpmk again [project]: Touch the source code to trigger recompiles. @@ -320,7 +322,7 @@ end if (arg[1] == "--version") then print ( "lwarpmk: " .. printversion ) -else -- not -- version +else -- not --version -- print intro: @@ -351,6 +353,12 @@ else -- not latexmk end end -- not latexmk +elseif arg[1] == "print1" then + loadconf () + verifyfileexists (sourcename .. ".tex") ; + onetime("") + print ("lwarpmk: Done.") ; + -- lwarp printindex: -- Compile the index then touch the source -- to trigger a recompile of the document: @@ -411,6 +419,13 @@ else -- not latexmk end end -- not latexmk +elseif arg[1] == "html1" then + loadconf () + verifyfileexists ( sourcename .. ".tex" ) ; + onetime("_html") + pdftohtml () + print ("lwarpmk: Done.") + elseif arg[1] == "pdftohtml" then loadconf () pdftohtml () -- cgit v1.2.3