1
0
Fork 0

Locate objects to de-thin

This commit is contained in:
Wilfried Goesgens 2016-05-02 16:36:53 +02:00
parent 4e67ba3dd2
commit 653f98a6ae
1 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@
# and overwrites the original .a
# takes one argument: the directory to spider the .a files.
for lib in `find $1 -name '*.a'`; \
do ar -t ${lib} | xargs ar rvs ${lib}.new && mv -v ${lib}.new ${lib}; \
for lib in `find $1 -name '*.a'`; do
(for file in `ar -t ${lib}`; do
find -name ${file}
done) |ar rvs ${lib}.new ${FN} ||exit 1
done