josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.35k stars 139 forks source link

runcmd and ren in build.lua #861

Closed SwitWu closed 9 months ago

SwitWu commented 9 months ago

Sorry for this kindof off-topic question. In build.lua there are runcmd and ren. Are they lua functions? I can not find them in the lua 5.4 reference manual.

samcarter commented 9 months ago

They are documented in l3build.pdf:

ren(⟨dir⟩, ⟨source⟩, ⟨destination⟩): Renames the ⟨source⟩ file to the ⟨destination⟩ name within the ⟨dir⟩; returns an error level.


runcmd(⟨cmd⟩,⟨dir⟩,{⟨envvars⟩}): A generic function which runs the ⟨cmd⟩ in the ⟨dir⟩, first setting up all of the environmental variables specified to point to the local and working directories. This function is useful when creating non-standard typesetting steps.

SwitWu commented 9 months ago

thanks!