add license statement to checkincludes, and have it return an error code

This commit is contained in:
Nick Mathewson 2018-06-21 14:29:00 -04:00
parent 8dcc015975
commit eb784aa9ea

View File

@ -1,4 +1,5 @@
#!/usr/bin/python3
# Copyright 2018 The Tor Project, Inc. See LICENSE file for licensing info.
import fnmatch
import os
@ -68,3 +69,4 @@ if trouble:
err(
"""To change which includes are allowed in a C file, edit the {} files in its
enclosing directory.""".format(RULES_FNAME))
sys.exit(1)