Strip leading `./src/` from directory.
parent
14a2ed4422
commit
3cea5a2883
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue