vundle/test

38 lines
828 B
Plaintext
Raw Normal View History

2010-10-30 04:01:34 -04:00
setup() {
2010-11-03 00:52:57 -04:00
echo -en 'disabled'
2010-11-03 00:00:57 -04:00
# mkdir -p $HOME/.vim/autoload/ &&
# curl http://github.com/gmarik/vundle/raw/master/autoload/vundle.vim > $HOME/.vim/autoload/vundle.vim
# return$([ -s $HOME/.vim/autoload/vundle.vim ] && rm -f ~/.vim/autoload/vundle.vim )
2010-11-03 00:52:57 -04:00
return 1
2010-10-30 04:01:34 -04:00
}
install() {
vim -e -c "BundleInstall" -c "q"
2010-10-31 20:32:53 -04:00
return $([ -d $HOME/.vim/bundle ] && [ "$(ls -1 -d ~/.vim/bundle/*|wc -l)" = "$(grep ^Bundle ~/.vim/vimrc|wc -l)" ] )
}
docs() {
_tags() { find ~/.vim/bundle/**/doc -name 'tags'; }
_tags | xargs rm
vim -e -c 'BundleDocs' -c 'q'
return $([ "0" != $(_tags | wc -l) ])
2010-10-30 04:01:34 -04:00
}
2010-10-31 20:32:53 -04:00
t() {
printf "%-15s: " $1
$1 1>> 'test.log' 2>&1 && echo 'ok' || echo 'fail'
2010-10-30 04:01:34 -04:00
}
2010-10-31 20:32:53 -04:00
test_all() {
: > 'test.log'
t setup
t install
t docs
}
doc() {
maruku --html README.md ; open README.html
}
2010-11-03 00:52:57 -04:00
${1:-test_all}