]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
_mod.qh files are exempt from header checks
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 19 Jun 2016 06:56:59 +0000 (16:56 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 19 Jun 2016 06:56:59 +0000 (16:56 +1000)
qcsrc/tools/headerstyle.sh

index ef1731592646e86da9bb2858b8a769634df7fd07..b638927bf4a50441d0adef391b4f48101337cef6 100755 (executable)
@@ -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