diff options
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 | ||