diff options
author | Roland McGrath <roland@redhat.com> | 2009-01-04 22:25:55 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-01-04 22:25:55 -0800 |
commit | ae4d6db785438da4e3d678e29046f885de0ba615 (patch) | |
tree | 2d4039e463fddec69b51bebf46ad5edfb143e4f8 | |
parent | 4fdfbfb7a8b76f7fb06d16264c57f60671246423 (diff) | |
download | debuginfo-test-scripts-ae4d6db785438da4e3d678e29046f885de0ba615.tar.gz debuginfo-test-scripts-ae4d6db785438da4e3d678e29046f885de0ba615.tar.xz debuginfo-test-scripts-ae4d6db785438da4e3d678e29046f885de0ba615.zip |
fix for older buggy file
-rwxr-xr-x | pack-debuginfo.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-debuginfo.sh b/pack-debuginfo.sh index de76bdd..b950b5a 100755 --- a/pack-debuginfo.sh +++ b/pack-debuginfo.sh @@ -27,6 +27,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-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 } |