summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-09 02:19:51 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-09 02:19:51 -0600
commitd665ff9226d474a3c7a59deb00406ded4de6e1fe (patch)
treef662d6b9218d3027fed05d8fb17c1f7eeca82c12 /init
parenta7ed88210908c664fafdbbf2d85212462db153e7 (diff)
downloadlua-term-packaging-master.tar.gz
lua-term-packaging-master.tar.bz2
lua-term-packaging-master.zip
Inital stab at buildingHEADmaster
Diffstat (limited to 'init')
-rwxr-xr-xinit13
1 files changed, 13 insertions, 0 deletions
diff --git a/init b/init
index 642d265..827073c 100755
--- a/init
+++ b/init
@@ -1 +1,14 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3cd lua-term
4luarocks config variables.CFLAGS " $CFLAGS"
5luarocks make --pack-binary-rock lua-term-0.8-1.rockspec
6obj="lua-term-0.8-1.$(luarocks config arch).rock"
7cp $obj /root
8cd /root
9if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
10 # And pack the library with upx
11 unzip $obj lib/*
12 upx --no-progress lib/term/*
13 zip -r "$obj" lib
14fi