Only use -outdir if needed (fixes #161)

The -outdir option is only available in latexmk after version 4.27.
This commit is contained in:
Karl Yngve Lervåg 2015-05-05 06:18:51 +02:00
parent 1cc368fb88
commit ce89b89c49

View File

@ -108,7 +108,10 @@ function! vimtex#latexmk#clean(full) " {{{1
else else
let cmd = 'cd ' . shellescape(data.root) . '; ' let cmd = 'cd ' . shellescape(data.root) . '; '
endif endif
let cmd .= 'latexmk -outdir=' . g:vimtex_latexmk_build_dir let cmd .= 'latexmk'
if g:vimtex_latexmk_build_dir !=# '.'
let cmd .= ' -outdir=' . g:vimtex_latexmk_build_dir
endif
let cmd .= a:full ? ' -C ' : ' -c ' let cmd .= a:full ? ' -C ' : ' -c '
let cmd .= vimtex#util#fnameescape(data.base) let cmd .= vimtex#util#fnameescape(data.base)
let exe = { let exe = {