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