diff options
author | mattn <mattn.jp@gmail.com> | 2020-01-29 23:46:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 23:46:46 +0900 |
commit | bff14e70248a73104cd35dfd5131d8c30f5f99b6 (patch) | |
tree | 6fdd9d2f214b9ab503e97cd1b5231476de222dca | |
parent | 21d4e0de702bf11498036ba95463e593f2c28d29 (diff) | |
parent | 899988fb04f4aa477c14e979f173216c0c2aadae (diff) | |
download | vim-lsp-settings-bff14e70248a73104cd35dfd5131d8c30f5f99b6.tar.gz vim-lsp-settings-bff14e70248a73104cd35dfd5131d8c30f5f99b6.tar.bz2 vim-lsp-settings-bff14e70248a73104cd35dfd5131d8c30f5f99b6.zip |
Merge pull request #114 from tsuyoshicho/feature/installer-go
Add go installer/efm-langserver installer
-rw-r--r-- | installer/go_install.cmd | 18 | ||||
-rwxr-xr-x | installer/go_install.sh | 10 | ||||
-rw-r--r-- | installer/install-efm-langserver.cmd | 3 | ||||
-rwxr-xr-x | installer/install-efm-langserver.sh | 5 |
4 files changed, 36 insertions, 0 deletions
diff --git a/installer/go_install.cmd b/installer/go_install.cmd new file mode 100644 index 0000000..b4200ad --- /dev/null +++ b/installer/go_install.cmd @@ -0,0 +1,18 @@ +@echo off
+
+if "x%1" equ "x" goto :EOF
+if "x%2" equ "x" goto :EOF
+
+setlocal
+
+set GOPATH=%CD%\go
+
+go get %2
+
+echo @echo off ^
+
+%%~dp0\go\bin\%1.exe %%* ^
+
+> %1.cmd
+
+endlocal
diff --git a/installer/go_install.sh b/installer/go_install.sh new file mode 100755 index 0000000..d60925b --- /dev/null +++ b/installer/go_install.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Usage +# $ go_install [EXECUTABLE_NAME] [GO_GET_URLPATH] + +set -e + +GOPATH=$(pwd)/go +go get "$2" +ln -s "./go/bin/$1" . diff --git a/installer/install-efm-langserver.cmd b/installer/install-efm-langserver.cmd new file mode 100644 index 0000000..9bf3110 --- /dev/null +++ b/installer/install-efm-langserver.cmd @@ -0,0 +1,3 @@ +@echo off
+
+call "%~dp0\go_install.cmd" efm-langserver github.com/mattn/efm-langserver
diff --git a/installer/install-efm-langserver.sh b/installer/install-efm-langserver.sh new file mode 100755 index 0000000..d967fa5 --- /dev/null +++ b/installer/install-efm-langserver.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e + +"$(dirname $0)/go_install.sh" efm-langserver github.com/mattn/efm-langserver |