The maximum file size needs to be increased a little. Still you may not need
[mailer.git] / contrib / validator.sh
1 #!/bin/sh
2
3 if ! test -e "modules.php"; then
4   echo "$0: Please execute this script from root directory."
5   exit 1
6 fi
7
8 echo "$0: Validating all templates..."
9 DUMMY=`find templates/de/html/ -type f -name *.tpl -exec php DOCS/tpl-validator.php {} \; 2>&1`
10 echo "${DUMMY}" | \
11         grep "PHP Warning" | \
12         cut -d "/" -f 1-5 | \
13         grep -v "error parsing attribute name in" > DOCS/template-warnings.log
14 echo "$0: done."