diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-09-23 21:07:43 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-23 21:07:43 -0500 |
commit | 6b3e6d71316a76b5cfd10e71236792af784d0a32 (patch) | |
tree | 84e808e5dc038c4353202f007cd4da478c8b5780 | |
parent | ad33dffead29df2f6b963b8032ba34ab5790a1a1 (diff) | |
download | luarocks-packaging-6b3e6d71316a76b5cfd10e71236792af784d0a32.tar.gz luarocks-packaging-6b3e6d71316a76b5cfd10e71236792af784d0a32.tar.bz2 luarocks-packaging-6b3e6d71316a76b5cfd10e71236792af784d0a32.zip |
Re-copy hardcoded config when building the second time.
-rwxr-xr-x | init | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,7 +5,7 @@ if [ -e libluajit.a ]; then | |||
5 | fi | 5 | fi |
6 | mkdir lua | 6 | mkdir lua |
7 | tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1 | 7 | tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1 |
8 | mv luarocks-packaging/hardcoded.lua luarocks/src/luarocks/core/hardcoded.lua | 8 | cp luarocks-packaging/hardcoded.lua luarocks/src/luarocks/core/hardcoded.lua |
9 | cd luarocks | 9 | cd luarocks |
10 | mkdir build-binary | 10 | mkdir build-binary |
11 | sed -i 's/local program_version = "dev"/local program_version = "lua4.win"/g' /root/luarocks/src/luarocks/core/cfg.lua | 11 | sed -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 | |||
15 | cat build-binary/luarocks.exe.c | wc -l | 15 | cat build-binary/luarocks.exe.c | wc -l |
16 | gcc -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 | 16 | gcc -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 |
18 | cp /root/luarocks-packaging/hardcoded.lua src/luarocks/core/hardcoded.lua | ||
18 | LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one | 19 | LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one |
19 | patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe.c | 20 | patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe.c |
20 | cat build-binary/luarocks.exe.c | wc -l | 21 | cat build-binary/luarocks.exe.c | wc -l |