Fixes some HTML errors, shell scripts cleaned up
[mailer.git] / DOCS / validator.sh
1 #!/bin/sh
2
3 echo "$0: Validating all templates..."
4 DUMMY=`find templates/de/html/ -type f -name *.tpl -exec php DOCS/tpl-validator.php {} \; 2>&1`
5 echo "${DUMMY}" | \
6         grep "Warning" | \
7         cut -d "/" -f 1-5 | \
8         grep -v "error parsing attribute name" > `dirname $0`/template-warnings.log
9 echo "$0: done."