diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-11-22 14:34:45 -0600 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-11-22 14:34:45 -0600 |
commit | 6a2c81487cfe4304df4e9dfc3b7fdba0f760ff51 (patch) | |
tree | aaa2d897e1b1acf4c74d33ee9dfdad213106222a | |
parent | f23fa107718de31e857e63f2753176de9fdefdd8 (diff) | |
download | lua-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-x | init | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,8 +13,8 @@ cp $obj2 /root | |||
13 | cd /root | 13 | cd /root |
14 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | 14 | if [ -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/* |