summaryrefslogtreecommitdiff
path: root/init
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 /init
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 'init')
-rwxr-xr-xinit20
1 files changed, 5 insertions, 15 deletions
diff --git a/init b/init
index 5ffad4d..86d8c92 100755
--- a/init
+++ b/init
@@ -2,27 +2,17 @@
2 2
3cd lua-compat-5.3 3cd lua-compat-5.3
4cp rockspecs/compat53-$packver.rockspec . 4cp rockspecs/compat53-$packver.rockspec .
5cp rockspecs/bit32-$packver.rockspec .
6luarocks config variables.CFLAGS " $CFLAGS" 5luarocks config variables.CFLAGS " $CFLAGS"
7luarocks make --pack-binary-rock compat53-$packver.rockspec 6luarocks make --pack-binary-rock compat53-$packver.rockspec
8luarocks make --pack-binary-rock bit32-$packver.rockspec 7obj="compat53-$packver.$(luarocks config arch).rock"
9obj1="compat53-$packver.$(luarocks config arch).rock" 8cp $obj /root
10obj2="bit32-$packver.$(luarocks config arch).rock"
11cp $obj1 /root
12cp $obj2 /root
13cd /root 9cd /root
14if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then 10if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
15 # Release build, delete docs/ and tests/ 11 # Release build, delete docs/ and tests/
16 zip -d $obj1 doc/ doc/* 12 zip -d $obj doc/ doc/*
17 zip -d $obj2 doc/ doc/*
18 # And pack the library with upx 13 # And pack the library with upx
19 unzip $obj1 lib/* 14 unzip $obj lib/*
20 upx --no-progress lib/compat53/* 15 upx --no-progress lib/compat53/*
21 zip -r "$obj1" lib 16 zip -r "$obj" lib
22 rm -rf lib
23
24 unzip $obj2 lib/*
25 upx --no-progress lib/*
26 zip -r "$obj2" lib
27 rm -rf lib 17 rm -rf lib
28fi 18fi