diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 02:19:51 -0600 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 02:19:51 -0600 |
commit | d665ff9226d474a3c7a59deb00406ded4de6e1fe (patch) | |
tree | f662d6b9218d3027fed05d8fb17c1f7eeca82c12 /init | |
parent | a7ed88210908c664fafdbbf2d85212462db153e7 (diff) | |
download | lua-term-packaging-master.tar.gz lua-term-packaging-master.tar.bz2 lua-term-packaging-master.zip |
Diffstat (limited to 'init')
-rwxr-xr-x | init | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1 +1,14 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | |||
3 | cd lua-term | ||
4 | luarocks config variables.CFLAGS " $CFLAGS" | ||
5 | luarocks make --pack-binary-rock lua-term-0.8-1.rockspec | ||
6 | obj="lua-term-0.8-1.$(luarocks config arch).rock" | ||
7 | cp $obj /root | ||
8 | cd /root | ||
9 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | ||
10 | # And pack the library with upx | ||
11 | unzip $obj lib/* | ||
12 | upx --no-progress lib/term/* | ||
13 | zip -r "$obj" lib | ||
14 | fi | ||