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 eb40342 commit e18d284
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 8 deletions.
5 changes: 4 additions & 1 deletion base/build.lua
Expand Up @@ -226,4 +226,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 build.lua
Expand Up @@ -74,4 +74,7 @@ end
-- Find and run the build system
kpse.set_program_name ("kpsewhich")
dofile(("./build-config.lua"))
dofile (kpse.lookup ("l3build.lua"))
if not release_date then
dofile(kpse.lookup("l3build.lua"))
end

5 changes: 4 additions & 1 deletion doc/build.lua
Expand Up @@ -38,4 +38,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 required/amsmath/build.lua
Expand Up @@ -27,4 +27,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

4 changes: 3 additions & 1 deletion required/babel/build.lua
Expand Up @@ -33,4 +33,6 @@ 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 required/cyrillic/build.lua
Expand Up @@ -22,4 +22,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 required/graphics/build.lua
Expand Up @@ -22,4 +22,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

4 changes: 3 additions & 1 deletion required/tools/build.lua
Expand Up @@ -24,4 +24,6 @@ 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 e18d284

Please sign in to comment.