diff options
| -rwxr-xr-x | init | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -3,11 +3,16 @@ | |||
| 3 | cd luasystem | 3 | cd luasystem |
| 4 | mv rockspecs/* . | 4 | mv rockspecs/* . |
| 5 | luarocks config variables.CFLAGS " $CFLAGS" | 5 | luarocks config variables.CFLAGS " $CFLAGS" |
| 6 | luarocks make --pack-binary-rock luasystem-$packver.rockspec | 6 | #No easy way to fool luarocks into building win32 instead of linux platform-specific stuff |
| 7 | sed -i "s/linux/foobar/g" *.rockspec | ||
| 8 | sed -i "s/win32/linux/g" *.rockspec | ||
| 9 | luarocks make --pack-binary-rock luasystem-$packver.rockspec --verbose | ||
| 7 | obj="luasystem-$packver.$(luarocks config arch).rock" | 10 | obj="luasystem-$packver.$(luarocks config arch).rock" |
| 8 | cp $obj /root | 11 | cp $obj /root |
| 9 | cd /root | 12 | cd /root |
| 10 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | 13 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then |
| 14 | # Release build, delete docs/ | ||
| 15 | zip -d $obj doc/ doc/* | ||
| 11 | # And pack the library with upx | 16 | # And pack the library with upx |
| 12 | unzip $obj lib/* | 17 | unzip $obj lib/* |
| 13 | upx --no-progress lib/* | 18 | upx --no-progress lib/* |
