X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=library-bundler;h=b08b9c89c0e2b71cf7dbddb7c8ff89bcbbe5c0b1;hb=03759826c95d5457622844780c8ff4cd5efd90f6;hp=235734eac0386f94915e14f82d9b92ae0b12e3eb;hpb=0dac7b2b664a517754df938c2cf9df62c0f47b57;p=xonotic%2Fnetradiant.git 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 () {