bc0842ce6e
This allows error in `build.sh` to propagate up. Fixes #1197.
21 lines
516 B
Bash
Executable File
21 lines
516 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
build_file=$SCRIPT_DIR/third_party/ycmd/build.sh
|
|
|
|
if [[ ! -f "$build_file" ]]; then
|
|
echo "File $build_file doesn't exist; you probably forgot to run:"
|
|
printf "\n\tgit submodule update --init --recursive\n\n"
|
|
exit 1
|
|
fi
|
|
|
|
"$build_file" "$@"
|
|
|
|
# Remove old YCM libs if present so that YCM can start.
|
|
rm -f python/*ycm_core.* &> /dev/null
|
|
rm -f python/*ycm_client_support.* &> /dev/null
|
|
rm -f python/*clang*.* &> /dev/null
|