aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-09-23 21:07:43 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-09-23 21:07:43 -0500
commit6b3e6d71316a76b5cfd10e71236792af784d0a32 (patch)
tree84e808e5dc038c4353202f007cd4da478c8b5780
parentad33dffead29df2f6b963b8032ba34ab5790a1a1 (diff)
downloadluarocks-packaging-6b3e6d71316a76b5cfd10e71236792af784d0a32.tar.gz
luarocks-packaging-6b3e6d71316a76b5cfd10e71236792af784d0a32.tar.bz2
luarocks-packaging-6b3e6d71316a76b5cfd10e71236792af784d0a32.zip
Re-copy hardcoded config when building the second time.
-rwxr-xr-xinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/init b/init
index b6df6a0..826105f 100755
--- a/init
+++ b/init
@@ -5,7 +5,7 @@ if [ -e libluajit.a ]; then
5fi 5fi
6mkdir lua 6mkdir lua
7tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1 7tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1
8mv luarocks-packaging/hardcoded.lua luarocks/src/luarocks/core/hardcoded.lua 8cp luarocks-packaging/hardcoded.lua luarocks/src/luarocks/core/hardcoded.lua
9cd luarocks 9cd luarocks
10mkdir build-binary 10mkdir build-binary
11sed -i 's/local program_version = "dev"/local program_version = "lua4.win"/g' /root/luarocks/src/luarocks/core/cfg.lua 11sed -i 's/local program_version = "dev"/local program_version = "lua4.win"/g' /root/luarocks/src/luarocks/core/cfg.lua
@@ -15,6 +15,7 @@ patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe
15cat build-binary/luarocks.exe.c | wc -l 15cat build-binary/luarocks.exe.c | wc -l
16gcc -o build-binary/luarocks.exe -Oz build-binary/luarocks.exe.c -I/root/lua/src /root/libbz2.a /root/libssl.a /root/libz.a /root/liblua.a -mconsole -mwindows -lm 16gcc -o build-binary/luarocks.exe -Oz build-binary/luarocks.exe.c -I/root/lua/src /root/libbz2.a /root/libssl.a /root/libz.a /root/liblua.a -mconsole -mwindows -lm
17# For some reason we have to do this twice to actually compile in all the modules 17# For some reason we have to do this twice to actually compile in all the modules
18cp /root/luarocks-packaging/hardcoded.lua src/luarocks/core/hardcoded.lua
18LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one 19LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one
19patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe.c 20patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe.c
20cat build-binary/luarocks.exe.c | wc -l 21cat build-binary/luarocks.exe.c | wc -l