aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-04 16:50:53 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-04 16:50:53 -0500
commit99fff188e86e8f45b56fefe301f7ceba365bd6ad (patch)
tree80d7284fc02173a166f0cbaf128bfa02950b753a /build.sh
parent50ceefd226c785bd7226e66ed42c7ea499fb0480 (diff)
downloadlite-xl-plugin-manager-99fff188e86e8f45b56fefe301f7ceba365bd6ad.tar.gz
lite-xl-plugin-manager-99fff188e86e8f45b56fefe301f7ceba365bd6ad.zip
Moved things over to LPM_STATIC, rather than LPM_LIVE.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 3e070c0..2c7b497 100755
--- a/build.sh
+++ b/build.sh
@@ -36,7 +36,7 @@ fi
[[ "$@" != *"-llua"* ]] && CFLAGS="$CFLAGS -Ilib/lua -DMAKE_LIB=1" && SRCS="$SRCS lib/lua/onelua.c"
# Build the pre-packaged lua file into the executbale.
-if [[ "$@" != *"-DLPM_LIVE" ]]; then
+if [[ "$@" == *"-DLPM_STATIC"* ]]; then
[[ ! -e "lua.exe" ]] && gcc -Ilib/lua -o lua.exe lib/lua/onelua.c -lm
./lua.exe -e 'io.open("src/lpm.luac", "wb"):write(string.dump(assert(loadfile("src/lpm.lua"))))'
xxd -i src/lpm.luac > src/lpm.lua.c