summaryrefslogtreecommitdiff
path: root/init
blob: 827073c921e02c68cd0bb49334321834996ce380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -ex

cd lua-term
luarocks config variables.CFLAGS " $CFLAGS"
luarocks make --pack-binary-rock lua-term-0.8-1.rockspec
obj="lua-term-0.8-1.$(luarocks config arch).rock"
cp $obj /root
cd /root
if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
  # And pack the library with upx
  unzip $obj lib/*
  upx --no-progress lib/term/*
  zip -r "$obj" lib
fi