aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 17:12:46 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 17:12:46 +0900
commit91ad6b301f156a827fcb1516c2228c24b7b309ce (patch)
treeeed40c450b38cadb1d3cc239c2948765393c3802 /installer
parent7249d58bb0217d9cc95b0efacdb550f20be95914 (diff)
downloadvim-lsp-settings-91ad6b301f156a827fcb1516c2228c24b7b309ce.tar.gz
vim-lsp-settings-91ad6b301f156a827fcb1516c2228c24b7b309ce.tar.bz2
vim-lsp-settings-91ad6b301f156a827fcb1516c2228c24b7b309ce.zip
Rename to intelephense
Diffstat (limited to 'installer')
-rw-r--r--installer/install-intelephense-server.cmd16
-rwxr-xr-xinstaller/install-intelephense-server.sh20
-rw-r--r--installer/install-intelephense.cmd5
-rwxr-xr-xinstaller/install-intelephense.sh8
4 files changed, 13 insertions, 36 deletions
diff --git a/installer/install-intelephense-server.cmd b/installer/install-intelephense-server.cmd
deleted file mode 100644
index efa690e..0000000
--- a/installer/install-intelephense-server.cmd
+++ /dev/null
@@ -1,16 +0,0 @@
-@echo off
-
-cd %~dp0
-if exist "..\servers\intelephense-server" rd /S /Q "..\servers\intelephense-server"
-md "..\servers\intelephense-server"
-cd "..\servers\intelephense-server"
-git clone "https://github.com/bmewburn/vscode-intelephense" .
-
-call npm install
-
-echo @echo off ^
-
-call %%~dp0\node_modules\.bin\intelephense.cmd %%* ^
-
-> intelephense-server.cmd
-
diff --git a/installer/install-intelephense-server.sh b/installer/install-intelephense-server.sh
deleted file mode 100755
index 60c400a..0000000
--- a/installer/install-intelephense-server.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-set -e
-
-cd $(dirname $0)
-[ -d ../servers/intelephense-server ] && rm -rf ../servers/intelephense-server
-mkdir ../servers/intelephense-server
-cd ../servers/intelephense-server
-git clone "https://github.com/bmewburn/vscode-intelephense" .
-npm install
-npm run compile
-
-cat <<EOF > intelephense-server
-#!/bin/sh
-
-DIR=\$(cd \$(dirname \$0); pwd)
-\$DIR/node_modules/.bin/intelephense --stdio
-EOF
-
-chmod +x intelephense-server
diff --git a/installer/install-intelephense.cmd b/installer/install-intelephense.cmd
new file mode 100644
index 0000000..72e55c7
--- /dev/null
+++ b/installer/install-intelephense.cmd
@@ -0,0 +1,5 @@
+@echo off
+
+cd %~dp0
+
+call npm_install intelephense intelephense
diff --git a/installer/install-intelephense.sh b/installer/install-intelephense.sh
new file mode 100755
index 0000000..4b24254
--- /dev/null
+++ b/installer/install-intelephense.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ./npm.sh
+npm_install intelephense intelephense