diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-29 18:41:07 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-29 18:41:07 +0800 |
commit | 5a7a0a61bf27adb65272082cb27883e1ea15e3a6 (patch) | |
tree | 55294fd44d5a0532058560e850ef7745804e4b16 | |
parent | 35dea6e862b9c27af8b919eaa0c9559fb496f8cc (diff) | |
download | lua-language-server-5a7a0a61bf27adb65272082cb27883e1ea15e3a6.zip |
测试
-rwxr-xr-x | linux.sh | 25 | ||||
-rwxr-xr-x | osx.sh | 25 |
2 files changed, 26 insertions, 24 deletions
@@ -4,11 +4,6 @@ set -e MY_DIR=$(cd "$(dirname $0)";pwd) INSTALL_PATH=`find ~/.vscode/extensions -name "sumneko.lua-*" | sort -r | head -1` -if [ -d "$INSTALL_PATH" ]; then - echo "found install path" -else - echo "please install sumneko Lua in VScode Marketplace first." -fi cd $MY_DIR @@ -23,13 +18,19 @@ cd - echo "build binary ..." ./3rd/luamake/luamake -echo "Try to install lua-language-server for you:" -cp server/bin/lua-language-server "${INSTALL_PATH}/server/bin" -cp server/bin/*.so "${INSTALL_PATH}/server/bin" +if [ -d "$INSTALL_PATH" ]; then + echo "Try to install lua-language-server for you:" + cp server/bin "${INSTALL_PATH}/server" -echo "Test ..." -${INSTALL_PATH}/server/bin/lua-language-server ${INSTALL_PATH}/server/test.lua + echo "Test ..." + ${INSTALL_PATH}/server/bin/lua-language-server ${INSTALL_PATH}/server/test.lua -echo "installed." -echo "please restart VScode and enjoy." + echo "installed." + echo "please restart VScode and enjoy." +else + echo "Test ..." + ./server/bin/lua-language-server ./server/test.lua + + echo "please install sumneko Lua in VScode Marketplace first." +fi echo "Done." @@ -4,11 +4,6 @@ set -e MY_DIR=$(cd "$(dirname $0)";pwd) INSTALL_PATH=`find ~/.vscode/extensions -name "sumneko.lua-*" | sort -r | head -1` -if [ -d "$INSTALL_PATH" ]; then - echo "found install path" -else - echo "please install sumneko Lua in VScode Marketplace first." -fi cd $MY_DIR @@ -23,13 +18,19 @@ cd - echo "build binary ..." ./3rd/luamake/luamake -echo "Try to install lua-language-server for you:" -cp server/bin/lua-language-server "${INSTALL_PATH}/server/bin" -cp server/bin/*.so "${INSTALL_PATH}/server/bin" +if [ -d "$INSTALL_PATH" ]; then + echo "Try to install lua-language-server for you:" + cp server/bin "${INSTALL_PATH}/server" -echo "Test ..." -${INSTALL_PATH}/server/bin/lua-language-server ${INSTALL_PATH}/server/test.lua + echo "Test ..." + ${INSTALL_PATH}/server/bin/lua-language-server ${INSTALL_PATH}/server/test.lua -echo "installed." -echo "please restart VScode and enjoy." + echo "installed." + echo "please restart VScode and enjoy." +else + echo "Test ..." + ./server/bin/lua-language-server ./server/test.lua + + echo "please install sumneko Lua in VScode Marketplace first." +fi echo "Done." |