helptags generation split
This commit is contained in:
parent
cda847b7a7
commit
036cd82989
@ -5,9 +5,10 @@ func! vundle#installer#install(bang)
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
func! vundle#installer#helptags()
|
func! vundle#installer#helptags()
|
||||||
let c = 0
|
let bundle_dirs = map(copy(g:bundles),'v:val.rtpath()')
|
||||||
for bundle in g:bundles | let c += s:helptags(bundle.rtpath()) | endfor
|
let help_dirs = filter(bundle_dirs, 's:has_doc(v:val)')
|
||||||
call s:log('Done. '.c.' bundles processed')
|
call map(copy(help_dirs), 's:helptags(v:val)')
|
||||||
|
call s:log('Done. '.len(help_dirs).' bundles processed')
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! vundle#installer#clean(bang)
|
func! vundle#installer#clean(bang)
|
||||||
@ -27,12 +28,12 @@ func! s:reload_bundles()
|
|||||||
if filereadable($MYGVIMRC)| silent source $MYGVIMRC | endif
|
if filereadable($MYGVIMRC)| silent source $MYGVIMRC | endif
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
func! s:has_doc(rtp)
|
||||||
|
return (isdirectory(a:rtp.'/doc') && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags')))
|
||||||
|
endf
|
||||||
|
|
||||||
func! s:helptags(rtp)
|
func! s:helptags(rtp)
|
||||||
if !(isdirectory(a:rtp.'/doc') && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags')))
|
|
||||||
return 0
|
|
||||||
endif
|
|
||||||
helptags `=a:rtp.'/doc'`
|
helptags `=a:rtp.'/doc'`
|
||||||
return 1
|
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:sync(bang, bundle)
|
func! s:sync(bang, bundle)
|
||||||
|
Loading…
Reference in New Issue
Block a user