]> git.mxchange.org Git - mailer.git/blobdiff - DOCS/validator.sh
TODOs and ext-network:
[mailer.git] / DOCS / validator.sh
old mode 100644 (file)
new mode 100755 (executable)
index 9553900..6b6e827
@@ -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."
+