23 lines
556 B
Bash
Executable File
23 lines
556 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function updateCommandT() {
|
|
local COMMAND_T_DIR="$HOME/.vim/bundle/command-t/ruby/command-t/ext/command-t";
|
|
[ ! -d $COMMAND_T_DIR ] && echo "Unable to locate command t build files" && exit 1;
|
|
|
|
cd $COMMAND_T_DIR;
|
|
ruby extconf.rb;
|
|
make;
|
|
}
|
|
|
|
function buildYCM() {
|
|
python3 --version || "python3-dev required to build YouCompleteMe" && exit 1;
|
|
local YCM_DIR="$HOME/.vim/bundle/YouCompleteMe";
|
|
[ ! -d $YCM_DIR ] && echo "Unable to locate YouCompleteMe build files" && exit 1;
|
|
|
|
cd $YCM_DIR;
|
|
python3 install.py;
|
|
}
|
|
|
|
#updateCommandT;
|
|
buildYCM;
|