function format ()
unpack ()
-- Much the same as the standard unpack approach: run from 'here' so
-- the relationships are all correct
os.execute (
os_setenv .. " TEXINPUTS=" .. unpackdir .. os_pathsep .. localdir
.. os_concat ..
"etex -etex -ini " .. " -output-directory=" .. unpackdir ..
" " .. unpackdir .. "/latex.ltx"
)
-- As format building is added in as an 'extra', the normal
-- copy mechanism (checkfiles) will fail as things get cleaned up
-- inside bundleunpack(): get around that using a manual copy