Skip to content

Commit

Permalink
Allow build scripts to work with old and new l3build calls
Browse files Browse the repository at this point in the history
This supports both

     texlua build.lua command

and

    l3build command
  • Loading branch information
josephwright committed Mar 10, 2018
1 parent 8b8ded7 commit a726d4f
Show file tree
Hide file tree
Showing 33 changed files with 132 additions and 33 deletions.
5 changes: 4 additions & 1 deletion build.lua
Expand Up @@ -57,4 +57,7 @@ end

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion contrib/build.lua
Expand Up @@ -28,4 +28,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3experimental/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3experimental/l3color/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3experimental/l3draw/build.lua
Expand Up @@ -20,4 +20,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3experimental/l3str/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3experimental/xcoffins/build.lua
Expand Up @@ -20,4 +20,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3experimental/xgalley/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3kernel/build.lua
Expand Up @@ -158,4 +158,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/l3doc/build.lua
Expand Up @@ -23,4 +23,7 @@ testfiledir = ""

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/l3doc/examples/build.lua
Expand Up @@ -6,4 +6,7 @@ module = "l3doc-examples"

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/l3keys2e/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/xfp/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/xfrac/build.lua
Expand Up @@ -20,4 +20,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/xparse/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3packages/xtemplate/build.lua
Expand Up @@ -19,4 +19,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3auxdata/build.lua
Expand Up @@ -19,4 +19,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3benchmark/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3bigint/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3check/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3fp-extras/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3hooks/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3htoks/build.lua
Expand Up @@ -21,4 +21,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3image/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3kernel-extras/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3ldb/build.lua
Expand Up @@ -31,4 +31,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3str-format-new/build.lua
Expand Up @@ -18,4 +18,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3trace/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/l3tree/build.lua
Expand Up @@ -15,4 +15,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/xbox/build.lua
Expand Up @@ -19,4 +19,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion l3trial/xfont/build.lua
Expand Up @@ -25,4 +25,7 @@ dofile(maindir .. "/build-config.lua")

-- Find and run the build system
kpse.set_program_name("kpsewhich")
dofile(kpse.lookup("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

0 comments on commit a726d4f

Please sign in to comment.