summaryrefslogtreecommitdiffstats
path: root/buildtools
diff options
context:
space:
mode:
authorMax Gaukler <development@maxgaukler.de>2018-11-08 19:56:35 +0000
committerMax Gaukler <development@maxgaukler.de>2018-11-08 19:56:35 +0000
commit483902249305e7cc094576842263aa5440d43ac8 (patch)
treebde5b73fef8be3a1775ee2badf9bec1fc6ab5c04 /buildtools
parentfix license in Windows MSI setup (diff)
downloadinkscape-483902249305e7cc094576842263aa5440d43ac8.tar.gz
inkscape-483902249305e7cc094576842263aa5440d43ac8.zip
License header check: ignore files in .gitignore
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/check_license_headers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildtools/check_license_headers.py b/buildtools/check_license_headers.py
index de6658239..e57b68a44 100755
--- a/buildtools/check_license_headers.py
+++ b/buildtools/check_license_headers.py
@@ -32,6 +32,9 @@ for root, dirs, files in os.walk("."):
continue
if sum([p.startswith(i) for i in IGNORE_PATHS]):
continue
+ if subprocess.call(["git", "check-ignore", "-q", "--", p]) == 0:
+ # file is in .gitignore
+ continue
license[p] = None
hasSPDX[p] = False