X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Fvalidator.sh;h=20aedf2a56f481a6cfea804373d0a952af12fcf4;hb=14caafbca5a4e94c7a22cec65c3a825243114d70;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..20aedf2a56 --- a/DOCS/validator.sh +++ b/DOCS/validator.sh @@ -1,3 +1,9 @@ #!/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."