Delegate YCM compile to curled install.sh

This commit is contained in:
Henrik Lissner 2013-03-23 04:17:34 -04:00
parent cc01aee4e4
commit 1a7f0ae4fd

View file

@ -35,22 +35,16 @@ if [ ! -e ~/.vimrc ]; then
rm ~/.vimrc.bundles rm ~/.vimrc.bundles
rm ~/.gvimrc rm ~/.gvimrc
fi fi
sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L) | indent if is_deb; then
fi pkg-install cmake
fi
# Installing/updating vim bundles sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L)
echo-g "==> Vim: Updating..." else
find ~/.vim/bundle/ -type d -name .git \ # Installing/updating vim bundles
| xargs -n 1 dirname \ echo-g "==> Vim: Updating..."
| while read line; do cd $line && echo -n "* $(basename $line): " && git pull; done find ~/.vim/bundle/ -type d -name .git \
| xargs -n 1 dirname \
# Compiling YouCompleteMe | while read line; do cd $line && echo -n "* $(basename $line): " && git pull; done
YVM_DIR="~/.vim/bundle/YouCompleteMe"
if [ -d $YVM_DIR ] && [ ! -e $YVM_DIR/python/ycm_core.so ]; then
echo-g "==> Vim: Trying to compile YCM"
pkg-install cmake
cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer
fi fi
echo-g "==> Vim: DONE!" echo-g "==> Vim: DONE!"