summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rwxr-xr-xinit15
1 files changed, 15 insertions, 0 deletions
diff --git a/init b/init
index 642d265..82ce7de 100755
--- a/init
+++ b/init
@@ -1 +1,16 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3cp luasocket-packageing/luasocket-scm-3.rockspec luasocket/luasocket-scm-3.rockspec
4cd luasocket
5
6luarocks config variables.CFLAGS " $CFLAGS"
7luarocks make --pack-binary-rock luasocket-scm-3.rockspec
8obj="luasocket-scm-3.$(luarocks config arch).rock"
9cp $obj /root
10cd /root
11if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
12 # And pack the library with upx
13 unzip $obj lib/*
14 upx --no-progress lib/*
15 zip -r "$obj" lib
16fi