aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-02-24 17:23:06 +0100
committerUlrich Müller <ulm@gentoo.org>2014-02-24 17:23:06 +0100
commit722dde01e47da29dcb7894de3355e1787dd72a4e (patch)
tree9af06e476cbcbd9c82e949897f1a86d35638646e
parentFix a typo. (diff)
downloadqa-scripts-722dde01e47da29dcb7894de3355e1787dd72a4e.tar.gz
qa-scripts-722dde01e47da29dcb7894de3355e1787dd72a4e.tar.bz2
qa-scripts-722dde01e47da29dcb7894de3355e1787dd72a4e.zip
find-binary-files.sh: Also report file size.
-rwxr-xr-xfind-binary-files.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/find-binary-files.sh b/find-binary-files.sh
index 2bf73ab..791649e 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -32,7 +32,10 @@ find . \( -path ./distfiles -o -path ./local -o -path ./metadata \
application/*"; charset=utf-8") ;;
"image/svg+xml; charset=us-ascii") ;; # SVG image
"image/x-xpmi; charset=us-ascii") ;; # XPM image
- *) echo "${path#./}: ${type}" ;;
+ *)
+ size=$(stat -c "%s" "${path}")
+ echo "${path#./}: ${type} (size=${size})"
+ ;;
esac
done \
| sort