summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-08-19 12:24:53 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-08-19 12:24:53 -0500
commit72ec490dbd079556d2b043d65d63405fb1cc1a3b (patch)
treea5d4a6e38976ff3b1b9bf3eeb3ff761d5fdce6a7 /init
parentd2be6ccef06f0a7174734706c669da8b2ffffad8 (diff)
downloadluafilesystem-packaging-72ec490dbd079556d2b043d65d63405fb1cc1a3b.tar.gz
luafilesystem-packaging-72ec490dbd079556d2b043d65d63405fb1cc1a3b.tar.bz2
luafilesystem-packaging-72ec490dbd079556d2b043d65d63405fb1cc1a3b.zip
Pack distributables for release builds
Diffstat (limited to 'init')
-rwxr-xr-xinit14
1 files changed, 13 insertions, 1 deletions
diff --git a/init b/init
index 010113c..4c3a926 100755
--- a/init
+++ b/init
@@ -3,4 +3,16 @@
3cd luafilesystem 3cd luafilesystem
4luarocks config variables.CFLAGS " $CFLAGS" 4luarocks config variables.CFLAGS " $CFLAGS"
5luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec 5luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec
6cp luafilesystem-scm-1.mingw32-x86_64.rock /root 6ojb="luafilesystem-scm-1.$(luarocks config arch).rock"
7cp $obj /root
8cd /root
9if [ -n $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
10 # Debug build
11else
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
18fi