From f5af62214022da29708ad2b14f1a968d9256e959 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Mon, 16 Feb 2026 20:12:56 -0600 Subject: Start working on packaging --- init | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'init') diff --git a/init b/init index 642d265..82ce7de 100755 --- a/init +++ b/init @@ -1 +1,16 @@ #!/bin/sh -ex + +cp luasocket-packageing/luasocket-scm-3.rockspec luasocket/luasocket-scm-3.rockspec +cd luasocket + +luarocks config variables.CFLAGS " $CFLAGS" +luarocks make --pack-binary-rock luasocket-scm-3.rockspec +obj="luasocket-scm-3.$(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