From fc8e2ecf9fe88295494e539728796f13dda67897 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 18 Dec 2024 22:47:15 -0600 Subject: Inital commit --- init | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'init') diff --git a/init b/init index 642d265..9d9ba52 100755 --- a/init +++ b/init @@ -1 +1,15 @@ #!/bin/sh -ex + +cp luaossl-packaging/luaossl-git.rockspec luaossl +cd luaossl +luarocks config variables.CFLAGS " $CFLAGS" +luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec +obj="luaossl-git.$(luarocks config arch).rock" +cp $obj /root +cd /root +if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then + # And pack the library with upx + unzip $obj lib/* + upx --no-progress lib/* + zip -r "$obj" lib +fi -- cgit v1.2.3-55-g6feb