[latex3-commits] [LaTeX2e] 05/06: Propogate errorlevel in top-level build script
noreply at latex-project.org
noreply at latex-project.org
Thu Nov 2 19:05:56 CET 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository LaTeX2e.
commit 399056aff93656881dff0c03c7b440858fed0c11
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Nov 2 17:55:56 2017 +0000
Propogate errorlevel in top-level build script
---
build.lua | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/build.lua b/build.lua
index 9905911..2ae1aff 100644
--- a/build.lua
+++ b/build.lua
@@ -28,6 +28,7 @@ end
-- While almost all of this is customise, the need to be able to cp and
-- rm files means that loading l3build.lua is very useful
function main (target)
+ local errorlevel
local function dobundles (target)
local t = { }
for _,v in ipairs(bundles) do
@@ -39,13 +40,13 @@ function main (target)
return call(t, target)
end
if target == "check" then
- dobundles ("check")
+ errorlevel = dobundles ("check")
elseif target == "clean" then
print ("Cleaning up")
- dobundles ("clean")
+ errorlevel = dobundles ("clean")
rm (".", "*.zip")
elseif target == "ctan" then
- local errorlevel = dobundles ("ctan")
+ errorlevel = dobundles ("ctan")
if errorlevel == 0 then
for _,i in ipairs (bundles) do
cp ("*.zip", i, ".")
@@ -55,16 +56,19 @@ function main (target)
end
end
elseif target == "doc" then
- dobundles ("doc")
+ errorlevel = dobundles ("doc")
elseif target == "install" then
- dobundles ("install")
+ errorlevel = dobundles ("install")
elseif target == "unpack" then
- dobundles ("unpack")
+ errorlevel = dobundles ("unpack")
elseif target == "version" then
version ()
else
help ()
end
+ if errorlevel ~=0 then
+ os.exit(1)
+ end
end
-- Find and run the build system
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list