forked from pool/lua-language-server
- install a missing file, otherwise the server doesn't start OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=41
16 lines
431 B
Bash
16 lines
431 B
Bash
#!/bin/sh
|
|
|
|
cd /usr/share/lua-language-server/ || exit 1
|
|
|
|
TMPPATH="/tmp/lua-language-server-$(id -u)"
|
|
install -dm0700 "${TMPPATH}"
|
|
INSTANCEPATH="$(mktemp -d "${TMPPATH}/instance-XXXXXX")"
|
|
DEFAULT_LOGPATH="${INSTANCEPATH}/log"
|
|
DEFAULT_METAPATH="${INSTANCEPATH}/meta"
|
|
|
|
exec @LIBEXECDIR@/lua-language-server/lua-language-server \
|
|
-E ./main.lua \
|
|
--logpath="${DEFAULT_LOGPATH}" \
|
|
--metapath="${DEFAULT_METAPATH}" \
|
|
"$@"
|