summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-18 22:47:15 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-18 22:47:15 -0600
commitfc8e2ecf9fe88295494e539728796f13dda67897 (patch)
tree4aa626770fb8f56af469482978aa8e68f2296d40 /init
parent4ec8388bdbdca3da82d06384b79acdde140cdafe (diff)
downloadluaossl-packaging-fc8e2ecf9fe88295494e539728796f13dda67897.tar.gz
luaossl-packaging-fc8e2ecf9fe88295494e539728796f13dda67897.tar.bz2
luaossl-packaging-fc8e2ecf9fe88295494e539728796f13dda67897.zip
Inital commit
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