summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-22 14:34:45 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-22 14:34:45 -0600
commit6a2c81487cfe4304df4e9dfc3b7fdba0f760ff51 (patch)
treeaaa2d897e1b1acf4c74d33ee9dfdad213106222a
parentf23fa107718de31e857e63f2753176de9fdefdd8 (diff)
downloadlua-compat-53-packaging-6a2c81487cfe4304df4e9dfc3b7fdba0f760ff51.tar.gz
lua-compat-53-packaging-6a2c81487cfe4304df4e9dfc3b7fdba0f760ff51.tar.bz2
lua-compat-53-packaging-6a2c81487cfe4304df4e9dfc3b7fdba0f760ff51.zip
Only delete files that exist
-rwxr-xr-xinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/init b/init
index 3f9af63..6766335 100755
--- a/init
+++ b/init
@@ -13,8 +13,8 @@ cp $obj2 /root
13cd /root 13cd /root
14if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then 14if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then
15 # Release build, delete docs/ and tests/ 15 # Release build, delete docs/ and tests/
16 zip -d $obj1 docs/ docs/* tests/ tests/* 16 zip -d $obj1 doc/ doc/*
17 zip -d $obj2 docs/ docs/* tests/ tests/* 17 zip -d $obj2 doc/ doc/*
18 # And pack the library with upx 18 # And pack the library with upx
19 unzip $obj1 lib/* 19 unzip $obj1 lib/*
20 upx --no-progress lib/* 20 upx --no-progress lib/*