projects
/
xonotic
/
netradiant.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3a97f
)
library-bundler: only call rmdir on empty directories when cleaning-up useless stuff
author
Thomas Debesse <dev@illwieckz.net>
Sun, 7 Mar 2021 05:15:23 +0000
(06:15 +0100)
committer
Thomas Debesse <dev@illwieckz.net>
Sun, 7 Mar 2021 09:13:02 +0000
(10:13 +0100)
library-bundler
patch
|
blob
|
history
diff --git
a/library-bundler
b/library-bundler
index 235734eac0386f94915e14f82d9b92ae0b12e3eb..b08b9c89c0e2b71cf7dbddb7c8ff89bcbbe5c0b1 100755
(executable)
--- a/
library-bundler
+++ b/
library-bundler
@@
-333,6
+333,9
@@
Multi::bundleLibFromFile () {
}
Multi::cleanUp () {
+ # Remove from bundle things that useless to be distributed,
+ # like headers or static libraries, also remove
+ # empty directories.
find "${bundle_dir}/lib" \
-type f \
-name '*.a' \
@@
-346,8
+349,8
@@
Multi::cleanUp () {
find "${bundle_dir}/lib" \
-depth \
-type d \
- -e
xec rmdir {} \;
\
- || true
+ -e
mpty
\
+ -exec rmdir {} \;
}
Linux::getRpath () {