summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-09-30 21:32:37 -0700
committerRoland McGrath <roland@redhat.com>2009-09-30 21:32:37 -0700
commited4e565bbcb2f9bedf72db535bb313456d5c64f0 (patch)
tree69196ee0221c0bb3085dec39dd47de82130817b0
parent4ad30f7cb98ad5ef6b86109ff466941e0fe9d82b (diff)
downloaddebuginfo-test-scripts-ed4e565bbcb2f9bedf72db535bb313456d5c64f0.tar.gz
debuginfo-test-scripts-ed4e565bbcb2f9bedf72db535bb313456d5c64f0.tar.xz
debuginfo-test-scripts-ed4e565bbcb2f9bedf72db535bb313456d5c64f0.zip
Handle newer file command output format.HEADmaster
Signed-off-by: Roland McGrath <roland@redhat.com>
-rwxr-xr-xpack-debuginfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-debuginfo.sh b/pack-debuginfo.sh
index 21432f2..cd718f4 100755
--- a/pack-debuginfo.sh
+++ b/pack-debuginfo.sh
@@ -29,7 +29,7 @@ do_collect()
find usr/lib* -type f -print0 | xargs --no-run-if-empty -0 file -N -F ' ' -i |
awk -v dir="$dir" -v src="$size" '
BEGIN { e = d = r = u = a = 0 }
-NF > 2 && $2 ~ "application/x-" { sub(/, .*$/, "") }
+NF > 2 && $2 ~ "application/x-" { sub(/[;,] .*$/, "") }
NF == 2 && $2 == "application/x-executable" { print $1 > "exec" ; ++e; next }
NF == 2 && $2 == "application/x-sharedlib" { print $1 > "dyn" ; ++d; next }
NF == 2 && $2 == "application/x-object" { print $1 > "rel" ; ++r; next }