Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory usw-pr-cvs1:/tmp/cvs-serv26481
Modified Files:
compiler.vim
Log Message:
Bug: 'makefile's in current directory are ignored.
Cause: used
if glob('makefile')
...
for testing whether makefile exists. However, in vim, a string evaluates to
0 in the if test. Use
if glob('makefile') != ''
...
instead.
Index: compiler.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** compiler.vim 14 Nov 2002 02:49:23 -0000 1.11
--- compiler.vim 14 Nov 2002 17:30:45 -0000 1.12
***************
*** 4,8 ****
" Version: 1.0
" Created: Tue Apr 23 05:00 PM 2002 PST
! " Last Change: Wed Nov 13 06:00 PM 2002 PST
"
" Description: functions for compiling/viewing/searching latex documents
--- 4,8 ----
" Version: 1.0
" Created: Tue Apr 23 05:00 PM 2002 PST
! " Last Change: Thu Nov 14 09:00 AM 2002 PST
"
" Description: functions for compiling/viewing/searching latex documents
***************
*** 29,33 ****
let curd = getcwd()
exe 'cd '.expand('%:p:h')
! if glob('makefile*') == ''
if has('gui_running')
call confirm(
--- 29,33 ----
let curd = getcwd()
exe 'cd '.expand('%:p:h')
! if glob('makefile*') == '' && glob('Makefile*') == ''
if has('gui_running')
call confirm(
***************
*** 91,95 ****
" if a makefile exists, just use the make utility
! if glob('makefile') || glob('Makefile')
let _makeprg = &l:makeprg
let &l:makeprg = 'make $*'
--- 91,95 ----
" if a makefile exists, just use the make utility
! if glob('makefile') != '' || glob('Makefile') != ''
let _makeprg = &l:makeprg
let &l:makeprg = 'make $*'
***************
*** 104,113 ****
elseif Tex_GetMainFileName() != ''
let mainfname = Tex_GetMainFileName()
else
" otherwise just use this file.
let mainfname = expand("%:t:r")
endif
-
- exec 'make '.mainfname
let winnum = winnr()
--- 104,113 ----
elseif Tex_GetMainFileName() != ''
let mainfname = Tex_GetMainFileName()
+ exec 'make '.mainfname
else
" otherwise just use this file.
let mainfname = expand("%:t:r")
+ exec 'make '.mainfname
endif
let winnum = winnr()
|