summaryrefslogtreecommitdiff
path: root/bit32
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-22 17:41:20 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-22 17:41:20 -0600
commitedf05590e666ca35a3a512aa49e26e9eae153ece (patch)
tree68707c5122b891bd141c1b745ec73af4098bd783 /bit32
parent5282a90383bec06b6c276c03c767de42d6a6b87d (diff)
downloadlua-compat-53-packaging-edf05590e666ca35a3a512aa49e26e9eae153ece.tar.gz
lua-compat-53-packaging-edf05590e666ca35a3a512aa49e26e9eae153ece.tar.bz2
lua-compat-53-packaging-edf05590e666ca35a3a512aa49e26e9eae153ece.zip
Break bit32 into it's own build target.
Diffstat (limited to 'bit32')
-rwxr-xr-xbit3218
1 files changed, 18 insertions, 0 deletions
diff --git a/bit32 b/bit32
new file mode 100755
index 0000000..90534bd
--- /dev/null
+++ b/bit32
@@ -0,0 +1,18 @@
1#!/bin/sh -ex
2
3cd lua-compat-5.3
4cp rockspecs/bit32-scm-1.rockspec .
5luarocks config variables.CFLAGS " $CFLAGS"
6luarocks make --pack-binary-rock bit32-scm-1.rockspec
7obj="bit32-scm-1.$(luarocks config arch).rock"
8cp $obj /root
9cd /root
10if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
11 # Release build, delete docs/ and tests/
12 zip -d $obj doc/ doc/*
13 # And pack the library with upx
14 unzip $obj lib/*
15 upx --no-progress lib/*
16 zip -r "$obj" lib
17 rm -rf lib
18fi