X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Fvalidator.sh;h=6b6e8270bf3bf44299027004dfdda1a3f8cd7f06;hb=84b05941043610583967ef117a557452c4793dec;hp=95539002a0eabe87b71abcf1912d9f9d18c36c9d;hpb=ae80e170b5d25a4782af90a7c3d81fbb176fa293;p=mailer.git diff --git a/DOCS/validator.sh b/DOCS/validator.sh old mode 100644 new mode 100755 index 95539002a0..6b6e8270bf --- a/DOCS/validator.sh +++ b/DOCS/validator.sh @@ -1,3 +1,7 @@ #!/bin/sh -find templates/de/html/ -type f -name *.tpl -exec php DOCS/tpl-validator.php {} \; | grep Warning | cut -d "/" -f 1-5 | grep -v "error parsing attribute name">warnings.log +echo "$0: Validating all templates..." +DUMMY=`find templates/de/html/ -type f -name *.tpl -exec php DOCS/tpl-validator.php {} \; 2>&1` +echo "${DUMMY}" | grep "Warning" | cut -d "/" -f 1-5 | grep -v "error parsing attribute name" > `dirname $0`/template-warnings.log +echo "$0: done." +