YouCompleteMe/install.sh
micbou 1b40d683be Convert the install script to python
Translate the install.sh script in python to make it platform independent.
Keep install.sh as a wrapper of install.py to not break scripts that
depend on it.
2015-08-23 20:12:16 +02:00

18 lines
328 B
Bash
Executable File

#!/bin/sh
echo "WARNING: this script is deprecated. Use the install.py script instead." 1>&2
SCRIPT_DIR=$(dirname $0 || exit $?)
command_exists() {
command -v "$1" >/dev/null 2>&1 ;
}
PYTHON_BINARY=python
if command_exists python2; then
PYTHON_BINARY=python2
fi
$PYTHON_BINARY "$SCRIPT_DIR/install.py" "$@" || exit $?