diff options
Diffstat (limited to 'init')
-rwxr-xr-x | init | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1 +1,15 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | |||
3 | cp luaossl-packaging/luaossl-git.rockspec luaossl | ||
4 | cd luaossl | ||
5 | luarocks config variables.CFLAGS " $CFLAGS" | ||
6 | luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec | ||
7 | obj="luaossl-git.$(luarocks config arch).rock" | ||
8 | cp $obj /root | ||
9 | cd /root | ||
10 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | ||
11 | # And pack the library with upx | ||
12 | unzip $obj lib/* | ||
13 | upx --no-progress lib/* | ||
14 | zip -r "$obj" lib | ||
15 | fi | ||