From d665ff9226d474a3c7a59deb00406ded4de6e1fe Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Mon, 9 Dec 2024 02:19:51 -0600 Subject: Inital stab at building --- init | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'init') diff --git a/init b/init index 642d265..827073c 100755 --- a/init +++ b/init @@ -1 +1,14 @@ #!/bin/sh -ex + +cd lua-term +luarocks config variables.CFLAGS " $CFLAGS" +luarocks make --pack-binary-rock lua-term-0.8-1.rockspec +obj="lua-term-0.8-1.$(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/term/* + zip -r "$obj" lib +fi -- cgit v1.2.3-55-g6feb