From 2cfb7869a483b270315f402b9a714299126d456c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 28 Mar 2019 15:36:50 +0100 Subject: [PATCH] Also check HTML and XML files --- doc/scripts/fixme.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/scripts/fixme.sh b/doc/scripts/fixme.sh index 3446aaf..6f1123c 100755 --- a/doc/scripts/fixme.sh +++ b/doc/scripts/fixme.sh @@ -72,6 +72,9 @@ _fixme() conf|sh) callback="_fixme_sh" ;; + htm|html|xml) + callback="_fixme_xml" + ;; esac [ -n "$callback" ] || continue ($callback "$filename") 2>&1 @@ -122,6 +125,19 @@ _fixme_sh() return $ret } +_fixme_xml() +{ + ret=0 + filename="$1" + + #XXX limited to a single line + #warnings + $GREP -nH '