summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2025-02-27 13:44:15 -0600
committerAlexander M Pickering <alex@cogarr.net>2025-02-27 13:44:15 -0600
commitfbb21e7aa341b968c9f3577fef3c6580ffcceb11 (patch)
tree7115f5d31455fbee20e161e003b782ba86fa1e88 /init
parent906d257fbc0b6bde00a5f1248cd1dcc6888b4721 (diff)
downloadlpeglabel-packaging-fbb21e7aa341b968c9f3577fef3c6580ffcceb11.tar.gz
lpeglabel-packaging-fbb21e7aa341b968c9f3577fef3c6580ffcceb11.tar.bz2
lpeglabel-packaging-fbb21e7aa341b968c9f3577fef3c6580ffcceb11.zip
Start work
Diffstat (limited to 'init')
-rwxr-xr-xinit14
1 files changed, 14 insertions, 0 deletions
diff --git a/init b/init
index 642d265..eb031e0 100755
--- a/init
+++ b/init
@@ -1 +1,15 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3cp lpeglabel-packaging/*.rockspec lpeglabel
4cd lpeglabel
5luarocks config variables.CFLAGS " $CFLAGS"
6luarocks make --pack-binary-rock lpeglabel-1.6.2-1.rockspec
7obj="lpeg-1.6.2-1.$(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