diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-08-05 20:23:57 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-08-05 20:23:57 -0500 |
| commit | a997eb84ddaa4ffa27c6bc89be236e732fcd2ec2 (patch) | |
| tree | 3bc6e1ff3bf106bb01ad20228368b7c44c7e38c9 /prepare | |
| parent | 4897cf31c2ffc8cdd2d67aaf884643bba86ee3c4 (diff) | |
| download | luafilesystem-packaging-a997eb84ddaa4ffa27c6bc89be236e732fcd2ec2.tar.gz luafilesystem-packaging-a997eb84ddaa4ffa27c6bc89be236e732fcd2ec2.tar.bz2 luafilesystem-packaging-a997eb84ddaa4ffa27c6bc89be236e732fcd2ec2.zip | |
Remove a bunch of stuff we wont use in compileing
Diffstat (limited to 'prepare')
| -rwxr-xr-x | prepare | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -1,9 +1,17 @@ | |||
| 1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
| 2 | 2 | ||
| 3 | rc-service networking start | ||
| 4 | |||
| 3 | apk add luarocks$rocks_ver | 5 | apk add luarocks$rocks_ver |
| 4 | luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") | 6 | luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") |
| 5 | mkdir "$luaver" | 7 | mkdir "$luaver" |
| 6 | tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 | 8 | tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 |
| 7 | rm "/root/$luaver/src/*.c" | 9 | rm /root/$luaver/src/*.c |
| 10 | rm -rf /root/$luaver/doc | ||
| 11 | rm -rf /root/$luaver/test | ||
| 12 | rm -rf /root/$luaver/etc | ||
| 13 | rm /root/*.tar.gz | ||
| 14 | rm -rf /root/image-mingw64 | ||
| 15 | rm -rf /root/luafilesystem-packaging | ||
| 8 | luarocks-$rocks_ver config variables.LUA_INCDIR "/root/$luaver/src" | 16 | luarocks-$rocks_ver config variables.LUA_INCDIR "/root/$luaver/src" |
| 9 | luarocks-$rocks_ver config variables.CFLAGS "$CFLAGS" | 17 | luarocks-$rocks_ver config variables.CFLAGS "$CFLAGS" |
