X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=library-bundler;h=b08b9c89c0e2b71cf7dbddb7c8ff89bcbbe5c0b1;hp=235734eac0386f94915e14f82d9b92ae0b12e3eb;hb=03ab09a97aec61abf547fb0c90251e12afb5f048;hpb=1c3a97f39c01a76cc6255ca064d39d2225637b0a diff --git a/library-bundler b/library-bundler index 235734ea..b08b9c89 100755 --- 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 \ - -exec rmdir {} \; \ - || true + -empty \ + -exec rmdir {} \; } Linux::getRpath () {