X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=hacks%2Fcheck_includes;h=8a4f901143156e861af264e0c2a6e8e046e4b05a;hb=99ec4ac0ec3b52e586ca4b6b7aedd19b04a167fc;hp=bd0ea636fd51188499eafa5fbe2ef1467fe6de69;hpb=8596e31595c9aba128078ba4a3950543ea291f98;p=dcpomatic.git diff --git a/hacks/check_includes b/hacks/check_includes index bd0ea636f..8a4f90114 100755 --- a/hacks/check_includes +++ b/hacks/check_includes @@ -8,7 +8,7 @@ for a in sys.argv[1:]: if line.startswith('#include'): includes.append(line.strip()[9:]) - std = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''] + std = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''] current_group = 0 for i in includes: @@ -28,11 +28,9 @@ for a in sys.argv[1:]: else: group = 0 - print '%s: %d' % (i, group) - if group < current_group: print '%s: first wrong order is %s' % (a, i) - sys.exit(1) + break current_group = group