aboutsummaryrefslogtreecommitdiff
path: root/scripts/bloat-o-meter
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-05 12:27:12 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-05 12:27:12 +0000
commit45aebfd32d30de492c6c714cd5b6a08ae4a53867 (patch)
tree3137cb88e08513849adeef36216cb743f00ee58d /scripts/bloat-o-meter
parent2e75dcc80d6dd2ad8858d6c343d25e6a8c5e4812 (diff)
downloadbusybox-45aebfd32d30de492c6c714cd5b6a08ae4a53867.tar.gz
- bail out if either file does not exist
Avoids filling my scrollback-buffer with superfluous information ;)
Diffstat (limited to 'scripts/bloat-o-meter')
-rwxr-xr-xscripts/bloat-o-meter5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter
index 67b3d290d..f6608afb8 100755
--- a/scripts/bloat-o-meter
+++ b/scripts/bloat-o-meter
@@ -13,6 +13,11 @@ if len(sys.argv) != 3:
sys.stderr.write("usage: %s file1 file2\n" % sys.argv[0])
sys.exit(-1)
+for f in sys.argv[1], sys.argv[2]:
+ if not os.path.exists(f):
+ sys.stderr.write("Error: file '%s' does not exist\n" % f)
+ sys.exit(-1)
+
def getsizes(file):
sym = {}
for l in os.popen("nm --size-sort " + file).readlines():