Skip to content

Commit

Permalink
don't copy files to the output dir if it isn't necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-h21 committed Apr 1, 2022
1 parent ef3c349 commit 5b6e6e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion make4ht
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ make:match("tmp$", function(filename,params)

make:match(".*",function(filename,par)
local outdir = '' --par["outdir"] and par["outdir"] .."/" or ''
if par['outdir'] ~= "" then outdir = par['outdir'] .. '/' end
if par['outdir'] ~= "" then
outdir = par['outdir'] .. '/'
else
-- don't run unnecessary copy without output dir
log:info("No output directory")
return true
end
log:info("outdir: "..outdir)
local outfilename = outdir .. filename
mkutils.copy(filename,outfilename)
Expand Down

0 comments on commit 5b6e6e7

Please sign in to comment.