From: Lennart Poettering Date: Tue, 22 May 2018 14:07:18 +0000 (+0200) Subject: find-double-newline: look in headers too X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=683bf69990339755aac44d636d12d6408c53b07e;p=elogind.git find-double-newline: look in headers too --- diff --git a/tools/find-double-newline.sh b/tools/find-double-newline.sh index c41811483..6e7e4cb69 100644 --- a/tools/find-double-newline.sh +++ b/tools/find-double-newline.sh @@ -10,7 +10,7 @@ case "$1" in DIR="$2" fi - find $DIR -type f \( -name '*.c' -o -name '*.xml' \) -exec $0 diff \{\} \; + find $DIR -type f \( -name '*.[ch]' -o -name '*.xml' \) -exec $0 diff \{\} \; ;; recpatch) @@ -20,7 +20,7 @@ case "$1" in DIR="$2" fi - find $DIR -type f \( -name '*.c' -o -name '*.xml' \) -exec $0 patch \{\} \; + find $DIR -type f \( -name '*.[ch]' -o -name '*.xml' \) -exec $0 patch \{\} \; ;; diff)