summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-09-09 11:33:52 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-09-09 11:33:52 -0500
commit70c3c15d792145a42ea4b666703fc0813d40f4cf (patch)
tree27a488c89a1b59434cdf7c2674ebafcd4e26fd7e /init
parent5ebdf4809e6e9ea0b8b478e995792e789f9c6292 (diff)
downloadlua-cjson-packaging-master.tar.gz
lua-cjson-packaging-master.tar.bz2
lua-cjson-packaging-master.zip
Add buildHEADmaster
Diffstat (limited to 'init')
-rwxr-xr-xinit15
1 files changed, 15 insertions, 0 deletions
diff --git a/init b/init
index 642d265..2e6353a 100755
--- a/init
+++ b/init
@@ -1 +1,16 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3cd lua-cjson
4luarocks config variables.CFLAGS " $CFLAGS"
5luarocks make --pack-binary-rock *.rockspec
6obj=$(ls *.rock)
7cp $obj /root
8cd /root
9if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
10 # Release build, delete docs/ and tests/
11 zip -d $obj docs/ docs/* tests/ tests/*
12 # And pack the library with upx
13 unzip $obj lib/*
14 find lib -type f | xargs upx --no-progress
15 zip -r "$obj" lib
16fi