From: TimePath Date: Sun, 19 Jun 2016 06:56:59 +0000 (+1000) Subject: _mod.qh files are exempt from header checks X-Git-Tag: xonotic-v0.8.2~783 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ab660febada3dc5d806de19082699fb3658fa78;p=xonotic%2Fxonotic-data.pk3dir.git _mod.qh files are exempt from header checks --- diff --git a/qcsrc/tools/headerstyle.sh b/qcsrc/tools/headerstyle.sh index ef1731592..b638927bf 100755 --- a/qcsrc/tools/headerstyle.sh +++ b/qcsrc/tools/headerstyle.sh @@ -24,7 +24,7 @@ function check() { include="#include \"${include}\"" startswith "$file" "$include" done - find "$base" -type f -name '*.qh' -print0 | sort -z | while read -r -d '' file; do + find "$base" -type f -name '*.qh' -a \! -name '_mod.qh' -print0 | sort -z | while read -r -d '' file; do echo "$file" startswith "$file" "#pragma once" done