diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-12-18 22:47:15 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-12-18 22:47:15 -0600 |
| commit | fc8e2ecf9fe88295494e539728796f13dda67897 (patch) | |
| tree | 4aa626770fb8f56af469482978aa8e68f2296d40 /init | |
| parent | 4ec8388bdbdca3da82d06384b79acdde140cdafe (diff) | |
| download | luaossl-packaging-fc8e2ecf9fe88295494e539728796f13dda67897.tar.gz luaossl-packaging-fc8e2ecf9fe88295494e539728796f13dda67897.tar.bz2 luaossl-packaging-fc8e2ecf9fe88295494e539728796f13dda67897.zip | |
Inital commit
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 | ||
