diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-21 10:32:39 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-21 10:32:39 +0000 |
commit | 49bdf28c320bf4e02048eb0cbd115d84b8467cd9 (patch) | |
tree | af07499ce2d7ac76cd01974b2a076457163b9ffd /scripts | |
parent | 6de8994440165e2f30c50d2d7c1f332d9cd649bd (diff) | |
download | busybox-49bdf28c320bf4e02048eb0cbd115d84b8467cd9.tar.gz |
- skip empty lines and archive members
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bloat-o-meter | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index f6608afb8..49f552717 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -21,6 +21,12 @@ for f in sys.argv[1], sys.argv[2]: def getsizes(file): sym = {} for l in os.popen("nm --size-sort " + file).readlines(): + l = l.strip() + # Skip empty lines + if not len(l): continue + # Skip archive members + if len(l.split()) == 1 and l.endswith(':'): + continue size, type, name = l[:-1].split() if type in "tTdDbBrR": if "." in name: name = "static." + name.split(".")[0] |