From b2d556d384e13d3180013ef8161936a4c3b990cd Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 6 Nov 2013 23:55:01 +0100 Subject: Update latex, ruby and mason --- ftplugin/latex-box/latexmk.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ftplugin') diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim index 0049146a..87ac2a99 100644 --- a/ftplugin/latex-box/latexmk.vim +++ b/ftplugin/latex-box/latexmk.vim @@ -143,6 +143,13 @@ function! LatexBox_Latexmk(force) let texroot = shellescape(LatexBox_GetTexRoot()) let mainfile = fnameescape(fnamemodify(LatexBox_GetMainTexFile(), ':t')) + " Check if latexmk is installed + if !executable('latexmk') + echomsg "Error: LaTeX-Box relies on latexmk for compilation, but it" . + \ " is not installed!" + return + endif + " Check if already running if has_key(g:latexmk_running_pids, basepath) echomsg "latexmk is already running for `" . basename . "'" @@ -301,7 +308,15 @@ endfunction " LatexmkClean {{{ function! LatexBox_LatexmkClean(cleanall) + " Check if latexmk is installed + if !executable('latexmk') + echomsg "Error: LaTeX-Box relies on latexmk for compilation, but it" . + \ " is not installed!" + return + endif + let basename = LatexBox_GetTexBasename(1) + if has_key(g:latexmk_running_pids, basename) echomsg "don't clean when latexmk is running" return -- cgit v1.2.3