Преглед на файлове

adding file-size info for amalagamated files to trace sporadic build errors in travis

Stasik0 преди 10 години
родител
ревизия
a41901beb5
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      tools/amalgamate.py

+ 3 - 0
tools/amalgamate.py

@@ -1,6 +1,7 @@
 from __future__ import print_function
 from __future__ import print_function
 import re
 import re
 import argparse
 import argparse
+import os.path
 
 
 parser = argparse.ArgumentParser()
 parser = argparse.ArgumentParser()
 parser.add_argument('version', help='version to include')
 parser.add_argument('version', help='version to include')
@@ -92,3 +93,5 @@ if not is_c:
 
 
 #endif /* %s */''' % (outname.upper() + "_H_"))
 #endif /* %s */''' % (outname.upper() + "_H_"))
 file.close()
 file.close()
+
+print ("The size of "+args.outfile+" is "+ str(os.path.getsize(args.outfile)))