use the --ycm option to install.sh to only mess with YCM

This commit is contained in:
Haak Saxberg 2014-05-30 07:52:45 +00:00
parent c7ef777768
commit 9b3bef9554

View file

@ -6,6 +6,17 @@ main() {
# sore the calling directory to return later # sore the calling directory to return later
CALLING_DIR=$PWD CALLING_DIR=$PWD
cd $DIR cd $DIR
if [[ $1 == "--ycm" ]]; then
rm .youcompletemesetup
setup_youcompleteme
exit 0
else
install_everything
fi
cd $CALLING_DIR
}
install_everything() {
echo "updating git modules..." echo "updating git modules..."
setup_gitmodules setup_gitmodules
@ -29,8 +40,6 @@ main() {
echo "setting up git files..." echo "setting up git files..."
symlink_files git-files gitconfig symlink_files git-files gitconfig
cd $CALLING_DIR
} }
setup_gitmodules() { setup_gitmodules() {
@ -67,4 +76,4 @@ setup_youcompleteme() {
fi fi
} }
main main $@