summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-09 00:00:36 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-09 00:00:36 -0600
commit4d311dd0ea315d09154cae4d4212f6b14e3ae211 (patch)
treef97b0bcfd27b9940d8842ba904a427f8d0b9f716 /init
parentd42f7ceae0825a1b66b33dd10ee371fde230b59b (diff)
downloadluasystem-packaging-4d311dd0ea315d09154cae4d4212f6b14e3ae211.tar.gz
luasystem-packaging-4d311dd0ea315d09154cae4d4212f6b14e3ae211.tar.bz2
luasystem-packaging-4d311dd0ea315d09154cae4d4212f6b14e3ae211.zip
Inital stab at packaging
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