aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/distrib/check_copyright.py
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-08-11 21:21:32 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-08-11 21:21:59 -0700
commitf64bf28e87356ca2ea26dfcfcb576de565180ad0 (patch)
tree5b0955cb4767a963aa6cf4997402fa7711ff756a /tools/distrib/check_copyright.py
parentd790dd6a5cb116245a8054692a1e10713d7512ac (diff)
Build c-ares without running ./configure
Diffstat (limited to 'tools/distrib/check_copyright.py')
-rwxr-xr-xtools/distrib/check_copyright.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py
index 4577ab3d11..3757c90afd 100755
--- a/tools/distrib/check_copyright.py
+++ b/tools/distrib/check_copyright.py
@@ -108,7 +108,9 @@ RE_LICENSE = dict(
if args.precommit:
FILE_LIST_COMMAND = 'git status -z | grep -Poz \'(?<=^[MARC][MARCD ] )[^\s]+\''
else:
- FILE_LIST_COMMAND = 'git ls-tree -r --name-only -r HEAD | grep -v ^third_party/'
+ FILE_LIST_COMMAND = 'git ls-tree -r --name-only -r HEAD | ' \
+ 'grep -v ^third_party/ |' \
+ 'grep -v "\(ares_config.h\|ares_build.h\)"'
def load(name):
with open(name) as f: