diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 00:00:36 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 00:00:36 -0600 |
| commit | 4d311dd0ea315d09154cae4d4212f6b14e3ae211 (patch) | |
| tree | f97b0bcfd27b9940d8842ba904a427f8d0b9f716 /init | |
| parent | d42f7ceae0825a1b66b33dd10ee371fde230b59b (diff) | |
| download | luasystem-packaging-4d311dd0ea315d09154cae4d4212f6b14e3ae211.tar.gz luasystem-packaging-4d311dd0ea315d09154cae4d4212f6b14e3ae211.tar.bz2 luasystem-packaging-4d311dd0ea315d09154cae4d4212f6b14e3ae211.zip | |
Inital stab at packaging
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 | cd luasystem | ||
| 4 | mv rockspecs/* . | ||
| 5 | luarocks config variables.CFLAGS " $CFLAGS" | ||
| 6 | luarocks make --pack-binary-rock luasystem-$packver.rockspec | ||
| 7 | obj="luasystem-$packver.$(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 | ||
