diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2025-02-27 13:44:15 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2025-02-27 13:44:15 -0600 |
| commit | fbb21e7aa341b968c9f3577fef3c6580ffcceb11 (patch) | |
| tree | 7115f5d31455fbee20e161e003b782ba86fa1e88 /init | |
| parent | 906d257fbc0b6bde00a5f1248cd1dcc6888b4721 (diff) | |
| download | lpeglabel-packaging-fbb21e7aa341b968c9f3577fef3c6580ffcceb11.tar.gz lpeglabel-packaging-fbb21e7aa341b968c9f3577fef3c6580ffcceb11.tar.bz2 lpeglabel-packaging-fbb21e7aa341b968c9f3577fef3c6580ffcceb11.zip | |
Start work
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 lpeglabel-packaging/*.rockspec lpeglabel | ||
| 4 | cd lpeglabel | ||
| 5 | luarocks config variables.CFLAGS " $CFLAGS" | ||
| 6 | luarocks make --pack-binary-rock lpeglabel-1.6.2-1.rockspec | ||
| 7 | obj="lpeg-1.6.2-1.$(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 | ||
