summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-09 02:04:48 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-09 02:04:48 -0600
commitf5c356b5f4611eaad8a518a807b7da2b6fcb0b33 (patch)
treeb866d7cc57601ba470e340a9540e527bd8b91ab9
parent4d311dd0ea315d09154cae4d4212f6b14e3ae211 (diff)
downloadluasystem-packaging-f5c356b5f4611eaad8a518a807b7da2b6fcb0b33.tar.gz
luasystem-packaging-f5c356b5f4611eaad8a518a807b7da2b6fcb0b33.tar.bz2
luasystem-packaging-f5c356b5f4611eaad8a518a807b7da2b6fcb0b33.zip
Fix system build
No easy way but to rewrite rockspecs Also delete the doc/ folder in release builds.
-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/*