summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-08-19 12:32:40 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-08-19 12:32:40 -0500
commit69906e56fcf2744d6cb0fd12ab018cb7c9d55527 (patch)
tree918ee669997058903ca01c00b079f4e80f7b4eb3
parent1d389aebec974166d5e53ee75e142b408fda3c30 (diff)
downloadluafilesystem-packaging-69906e56fcf2744d6cb0fd12ab018cb7c9d55527.tar.gz
luafilesystem-packaging-69906e56fcf2744d6cb0fd12ab018cb7c9d55527.tar.bz2
luafilesystem-packaging-69906e56fcf2744d6cb0fd12ab018cb7c9d55527.zip
Simplify
-rwxr-xr-xinit4
1 files changed, 1 insertions, 3 deletions
diff --git a/init b/init
index d0cfbb3..8d55897 100755
--- a/init
+++ b/init
@@ -6,9 +6,7 @@ luarocks make --pack-binary-rock luafilesystem-scm-1.rockspec
6obj="luafilesystem-scm-1.$(luarocks config arch).rock" 6obj="luafilesystem-scm-1.$(luarocks config arch).rock"
7cp $obj /root 7cp $obj /root
8cd /root 8cd /root
9if [ -n $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then 9if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
10 # Debug build
11else
12 # Release build, delete docs/ and tests/ 10 # Release build, delete docs/ and tests/
13 zip -d $obj docs/ docs/* tests/ tests/* 11 zip -d $obj docs/ docs/* tests/ tests/*
14 # And pack the library 12 # And pack the library