8 Jun
2014
8 Jun
'14
1:12 a.m.
On 06/08/2014 12:30 AM, Dave Reisner wrote:
+ local uncompressed_size=$( du -sb "${comp_files[@]}" | awk 'BEGIN {s=0} {s += $1} END {print s}' )
Other usage of du in this script are necessarily done via a preprocessor replacement, i.e. @DUPATH@ @DUFLAGS@
You'll need to follow this.
Actually, after some grepping I found that there is only one other usage of DUPATH/DUFLAGS in the entire codebase. It goes like this: first we set DUFLAGS="-sk --apparent-size" in configure.ac, forcing it to report sizes in kilobytes (the -k option), and then we multiply the result by 1024 to get the useful number (lines 1905-1906 of scripts/makepkg.sh.in). Do you think there's a reason behind it, or should I just change "-sk" to "-sb"?