[latex3-commits] [git/LaTeX3-latex3-l3build] TDS: Improve --dry-run output (0ff4192)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Jul 26 08:37:41 CEST 2019
Repository : https://github.com/latex3/l3build
On branch : TDS
Link : https://github.com/latex3/l3build/commit/0ff4192ae2e5a431cab69b9485568bb29105d11a
>---------------------------------------------------------------
commit 0ff4192ae2e5a431cab69b9485568bb29105d11a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Jul 26 07:37:41 2019 +0100
Improve --dry-run output
>---------------------------------------------------------------
0ff4192ae2e5a431cab69b9485568bb29105d11a
l3build-install.lua | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/l3build-install.lua b/l3build-install.lua
index 39d794d..ced022a 100644
--- a/l3build-install.lua
+++ b/l3build-install.lua
@@ -137,9 +137,7 @@ function install_files(target,full,dry_run)
local errorlevel = 0
-- The target is only created if there are actual files to install
if next(filenames) then
- if dry_run then
- print("For installation inside " .. target .. ":")
- else
+ if not dry_run then
for _,path in pairs(paths) do
errorlevel = cleandir(target .. "/" .. path)
if errorlevel ~= 0 then return errorlevel end
@@ -207,6 +205,10 @@ function install_files(target,full,dry_run)
sourcelist = excludelist(sourcefiledir,sourcefiles,
{bstfiles,installfiles,makeindexfiles,scriptfiles})
+ if dry_run then
+ print("\nFor installation inside " .. target .. ":")
+ end
+
errorlevel = install_files(sourcefiledir,"source",{sourcelist})
+ install_files(docfiledir,"doc",
{bibfiles,demofiles,docfiles,pdffiles,textfiles,typesetlist})
@@ -238,9 +240,8 @@ function install_files(target,full,dry_run)
end
end
if next(manfiles) then
- print("\n" .. "For installation in " .. target .. "/doc/man:")
for _,v in ipairs(manfiles) do
- print("- " .. v)
+ print("- doc/man/" .. v)
end
end
end
More information about the latex3-commits
mailing list