summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/lwarp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-27 23:56:09 +0000
committerKarl Berry <karl@freefriends.org>2017-08-27 23:56:09 +0000
commit1ebb33e9902b2a96b03f5cd15dcf3f6c561f19ef (patch)
tree0ca1b2cae5f3017d17437f300a72263958da1339 /Master/texmf-dist/scripts/lwarp
parent08429b2ebce33f39aef9d2efa79a08bd4e1b495f (diff)
lwarp (27aug17)
git-svn-id: svn://tug.org/texlive/trunk@45144 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/lwarp')
-rwxr-xr-xMaster/texmf-dist/scripts/lwarp/lwarpmk.lua23
1 files changed, 19 insertions, 4 deletions
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 ()