From: Peter Maydell Date: Tue, 23 Feb 2016 14:49:42 +0000 (+0000) Subject: scripts/clean-includes: Ignore .inc.c files X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f8e1f5d6a2724cd72a296d693f808e534a0a3980;p=qemu.git scripts/clean-includes: Ignore .inc.c files 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 Signed-off-by: Peter Maydell Message-Id: <1456238983-10160-3-git-send-email-peter.maydell@linaro.org> Signed-off-by: Richard Henderson --- diff --git a/scripts/clean-includes b/scripts/clean-includes index d2dd7ae3ce..a1faa60710 100755 --- a/scripts/clean-includes +++ b/scripts/clean-includes @@ -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 ;;