From edf05590e666ca35a3a512aa49e26e9eae153ece Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Fri, 22 Nov 2024 17:41:20 -0600 Subject: Break bit32 into it's own build target. --- bit32 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 bit32 (limited to 'bit32') diff --git a/bit32 b/bit32 new file mode 100755 index 0000000..90534bd --- /dev/null +++ b/bit32 @@ -0,0 +1,18 @@ +#!/bin/sh -ex + +cd lua-compat-5.3 +cp rockspecs/bit32-scm-1.rockspec . +luarocks config variables.CFLAGS " $CFLAGS" +luarocks make --pack-binary-rock bit32-scm-1.rockspec +obj="bit32-scm-1.$(luarocks config arch).rock" +cp $obj /root +cd /root +if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then + # Release build, delete docs/ and tests/ + zip -d $obj doc/ doc/* + # And pack the library with upx + unzip $obj lib/* + upx --no-progress lib/* + zip -r "$obj" lib + rm -rf lib +fi -- cgit v1.2.3-55-g6feb