aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2023-06-20 09:08:44 -0400
committerGitHub <noreply@github.com>2023-06-20 09:08:44 -0400
commite655a6add9af02a0b40e065fc62127b92b2638f1 (patch)
tree0a04aa58c852a08e765094c8ae3ebe8b287e6085 /build.sh
parentdade9f4849438cf1a62db6ac273934872083c233 (diff)
parent406b505a07c39095abc8c0c1dcfd989712930f7d (diff)
downloadlite-xl-plugin-manager-e655a6add9af02a0b40e065fc62127b92b2638f1.tar.gz
lite-xl-plugin-manager-e655a6add9af02a0b40e065fc62127b92b2638f1.zip
Merge pull request #25 from Jan200101/PR/xxd_set_name
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"