summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-08-05 20:23:57 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-08-05 20:23:57 -0500
commita997eb84ddaa4ffa27c6bc89be236e732fcd2ec2 (patch)
tree3bc6e1ff3bf106bb01ad20228368b7c44c7e38c9
parent4897cf31c2ffc8cdd2d67aaf884643bba86ee3c4 (diff)
downloadluafilesystem-packaging-a997eb84ddaa4ffa27c6bc89be236e732fcd2ec2.tar.gz
luafilesystem-packaging-a997eb84ddaa4ffa27c6bc89be236e732fcd2ec2.tar.bz2
luafilesystem-packaging-a997eb84ddaa4ffa27c6bc89be236e732fcd2ec2.zip
Remove a bunch of stuff we wont use in compileing
-rwxr-xr-xprepare10
1 files changed, 9 insertions, 1 deletions
diff --git a/prepare b/prepare
index 73e85b6..a4b67d0 100755
--- a/prepare
+++ b/prepare
@@ -1,9 +1,17 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2 2
3rc-service networking start
4
3apk add luarocks$rocks_ver 5apk add luarocks$rocks_ver
4luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") 6luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..")
5mkdir "$luaver" 7mkdir "$luaver"
6tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 8tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1
7rm "/root/$luaver/src/*.c" 9rm /root/$luaver/src/*.c
10rm -rf /root/$luaver/doc
11rm -rf /root/$luaver/test
12rm -rf /root/$luaver/etc
13rm /root/*.tar.gz
14rm -rf /root/image-mingw64
15rm -rf /root/luafilesystem-packaging
8luarocks-$rocks_ver config variables.LUA_INCDIR "/root/$luaver/src" 16luarocks-$rocks_ver config variables.LUA_INCDIR "/root/$luaver/src"
9luarocks-$rocks_ver config variables.CFLAGS "$CFLAGS" 17luarocks-$rocks_ver config variables.CFLAGS "$CFLAGS"