summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinit7
1 files changed, 6 insertions, 1 deletions
diff --git a/init b/init
index af3559d..cc8d540 100755
--- a/init
+++ b/init
@@ -3,11 +3,16 @@
3cd luasystem 3cd luasystem
4mv rockspecs/* . 4mv rockspecs/* .
5luarocks config variables.CFLAGS " $CFLAGS" 5luarocks config variables.CFLAGS " $CFLAGS"
6luarocks make --pack-binary-rock luasystem-$packver.rockspec 6#No easy way to fool luarocks into building win32 instead of linux platform-specific stuff
7sed -i "s/linux/foobar/g" *.rockspec
8sed -i "s/win32/linux/g" *.rockspec
9luarocks make --pack-binary-rock luasystem-$packver.rockspec --verbose
7obj="luasystem-$packver.$(luarocks config arch).rock" 10obj="luasystem-$packver.$(luarocks config arch).rock"
8cp $obj /root 11cp $obj /root
9cd /root 12cd /root
10if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then 13if [ -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/*