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