cookutils diff modules/compressor @ rev 957
cooker: add command 'outgoing'; modules/deps: add option '--incl'; modules/compressor: skip empty *.a
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 11 05:09:18 2017 +0300 (2017-08-11) |
parents | 7cdd0d3b59b7 |
children | bc95097eff7e |
line diff
1.1 --- a/modules/compressor Sat Aug 05 04:41:24 2017 +0300 1.2 +++ b/modules/compressor Fri Aug 11 05:09:18 2017 +0300 1.3 @@ -565,8 +565,9 @@ 1.4 find $fs -name '*.a' -exec $STRIP -d '{}' 2>/dev/null \; 1.5 1.6 # Nullify timestamps of files in ar archives 1.7 + # Skip empty 8-byte archives (hi, musl-libc package) 1.8 whereami=$(pwd) 1.9 - find $fs -name '*.a' -type f | \ 1.10 + find $fs -name '*.a' -type f -size +8c | \ 1.11 while read i; do 1.12 tempdir=$(mktemp -d); cd $tempdir 1.13 ar -x $i; ar -crD $(basename $i) *