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