diff options
author | Karl Berry <karl@freefriends.org> | 2017-08-27 23:56:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-08-27 23:56:09 +0000 |
commit | 1ebb33e9902b2a96b03f5cd15dcf3f6c561f19ef (patch) | |
tree | 0ca1b2cae5f3017d17437f300a72263958da1339 /Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua | |
parent | 08429b2ebce33f39aef9d2efa79a08bd4e1b495f (diff) |
lwarp (27aug17)
git-svn-id: svn://tug.org/texlive/trunk@45144 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua b/Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua index 42a7da2e06b..4e2a99cd3dd 100755 --- a/Build/source/texk/texlive/linked_scripts/lwarp/lwarpmk.lua +++ b/Build/source/texk/texlive/linked_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 () |