aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/YouCompleteMe/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vim/bundle/YouCompleteMe/install.sh')
-rwxr-xr-xvim/bundle/YouCompleteMe/install.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/vim/bundle/YouCompleteMe/install.sh b/vim/bundle/YouCompleteMe/install.sh
new file mode 100755
index 0000000..8c9c2fd
--- /dev/null
+++ b/vim/bundle/YouCompleteMe/install.sh
@@ -0,0 +1,17 @@
+#!/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 $?