svn commit: trunk/busybox/scripts
aldot at busybox.net
aldot at busybox.net
Thu Apr 5 12:27:13 UTC 2007
Author: aldot
Date: 2007-04-05 05:27:12 -0700 (Thu, 05 Apr 2007)
New Revision: 18334
Log:
- bail out if either file does not exist
Avoids filling my scrollback-buffer with superfluous information ;)
Modified:
trunk/busybox/scripts/bloat-o-meter
Changeset:
Modified: trunk/busybox/scripts/bloat-o-meter
===================================================================
--- trunk/busybox/scripts/bloat-o-meter 2007-04-05 10:31:47 UTC (rev 18333)
+++ trunk/busybox/scripts/bloat-o-meter 2007-04-05 12:27:12 UTC (rev 18334)
@@ -13,6 +13,11 @@
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():
More information about the busybox-cvs
mailing list