diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 02:07:34 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 02:07:34 -0600 |
| commit | cd88c68935211a6a992a2af215453206573d0446 (patch) | |
| tree | fcb32a4b34da305a7d582a81835845a207288300 /init | |
| parent | f5c356b5f4611eaad8a518a807b7da2b6fcb0b33 (diff) | |
| download | luasystem-packaging-master.tar.gz luasystem-packaging-master.tar.bz2 luasystem-packaging-master.zip | |
Diffstat (limited to '')
| -rwxr-xr-x | init | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -6,7 +6,7 @@ luarocks config variables.CFLAGS " $CFLAGS" | |||
| 6 | #No easy way to fool luarocks into building win32 instead of linux platform-specific stuff | 6 | #No easy way to fool luarocks into building win32 instead of linux platform-specific stuff |
| 7 | sed -i "s/linux/foobar/g" *.rockspec | 7 | sed -i "s/linux/foobar/g" *.rockspec |
| 8 | sed -i "s/win32/linux/g" *.rockspec | 8 | sed -i "s/win32/linux/g" *.rockspec |
| 9 | luarocks make --pack-binary-rock luasystem-$packver.rockspec --verbose | 9 | luarocks make --pack-binary-rock luasystem-$packver.rockspec |
| 10 | obj="luasystem-$packver.$(luarocks config arch).rock" | 10 | obj="luasystem-$packver.$(luarocks config arch).rock" |
| 11 | cp $obj /root | 11 | cp $obj /root |
| 12 | cd /root | 12 | cd /root |
| @@ -15,6 +15,6 @@ if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | |||
| 15 | zip -d $obj doc/ doc/* | 15 | zip -d $obj doc/ doc/* |
| 16 | # And pack the library with upx | 16 | # And pack the library with upx |
| 17 | unzip $obj lib/* | 17 | unzip $obj lib/* |
| 18 | upx --no-progress lib/* | 18 | upx --no-progress lib/system/* |
| 19 | zip -r "$obj" lib | 19 | zip -r "$obj" lib |
| 20 | fi | 20 | fi |
