scripts/clean-includes: Ignore .inc.c files
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 14:49:42 +0000 (14:49 +0000)
committerRichard Henderson <rth@twiddle.net>
Tue, 23 Feb 2016 16:30:59 +0000 (08:30 -0800)
Ignore files which have a .inc.c extension -- these are not headers
but they are not standalone C source files either, so we can't make
any automated decisions about what #include directives they should
have.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <1456238983-10160-3-git-send-email-peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
scripts/clean-includes

index d2dd7ae3ceff9cc55ee49d491ad400a8b6316596..a1faa60710e07e4d2616e8a1948b4cff878c6d59 100755 (executable)
@@ -94,6 +94,11 @@ EOT
 
 for f in "$@"; do
   case "$f" in
+    *.inc.c)
+      # These aren't standalone C source files
+      echo "SKIPPING $f (not a standalone source file)"
+      continue
+      ;;
     *.c)
       MODE=c
       ;;