Strip leading `./src/` from directory.

finite-set-exercises
Joshua Potter 2023-05-04 09:15:01 -06:00
parent 14a2ed4422
commit 3cea5a2883
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ local function get_parent_dir(file)
return dir:gsub('^%s*(.-)%s*$', '%1') return dir:gsub('^%s*(.-)%s*$', '%1')
end end
local dir = get_parent_dir(arg[3]) local dir = get_parent_dir(arg[3]):sub(#"./src/")
local outdir = 'build/tex/' .. dir .. '/' .. settings.input local outdir = 'build/tex/' .. dir .. '/' .. settings.input
os.execute('mkdir -p ' .. outdir) os.execute('mkdir -p ' .. outdir)