diff options
Diffstat (limited to 'init')
| -rwxr-xr-x | init | 14 |
1 files changed, 13 insertions, 1 deletions
| @@ -3,4 +3,16 @@ | |||
| 3 | cd luafilesystem | 3 | cd luafilesystem |
| 4 | luarocks config variables.CFLAGS " $CFLAGS" | 4 | luarocks config variables.CFLAGS " $CFLAGS" |
| 5 | luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec | 5 | luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec |
| 6 | cp luafilesystem-scm-1.mingw32-x86_64.rock /root | 6 | ojb="luafilesystem-scm-1.$(luarocks config arch).rock" |
| 7 | cp $obj /root | ||
| 8 | cd /root | ||
| 9 | if [ -n $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | ||
| 10 | # Debug build | ||
| 11 | else | ||
| 12 | # Release build, delete docs/ and tests/ | ||
| 13 | zip -d $obj docs/ docs/* tests/ tests/* | ||
| 14 | # And pack the library | ||
| 15 | unzip $obj lib/* | ||
| 16 | upx lib/* | ||
| 17 | zip -r -u $obj lib | ||
| 18 | fi | ||
