← Commit list

45aebfd32

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2007-04-05
FAILED Duration: 17s

Subject

- bail out if either file does not exist Avoids filling my scrollback-buffer with superfluous information ;)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

scripts/bloat-o-meter+5 -0
@@ -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():