aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-06-20 12:58:47 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-06-20 12:58:47 +0200
commit406b505a07c39095abc8c0c1dcfd989712930f7d (patch)
tree0a04aa58c852a08e765094c8ae3ebe8b287e6085 /build.sh
parentdade9f4849438cf1a62db6ac273934872083c233 (diff)
downloadlite-xl-plugin-manager-406b505a07c39095abc8c0c1dcfd989712930f7d.tar.gz
lite-xl-plugin-manager-406b505a07c39095abc8c0c1dcfd989712930f7d.zip
Set variable name with xxd instead of relying on path
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 94e514e..2dbc424 100755
--- a/build.sh
+++ b/build.sh
@@ -40,7 +40,7 @@ fi
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
+ xxd -n lpm_luac -i src/lpm.luac > src/lpm.lua.c
fi
[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && CFLAGS="$CFLAGS -DLUA_USE_LINUX" && LDFLAGS="$LDFLAGS -ldl"