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..9d9ba52 100755
--- a/init
+++ b/init
@@ -1 +1,15 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3cp luaossl-packaging/luaossl-git.rockspec luaossl
4cd luaossl
5luarocks config variables.CFLAGS " $CFLAGS"
6luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec
7obj="luaossl-git.$(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