First batch of fixed language ids (renamed, see ticket #219)
[mailer.git] / DOCS / 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 "Warning" | \
12         cut -d "/" -f 1-5 | \
13         grep -v "error parsing attribute name" > `dirname $0`/template-warnings.log
14 echo "$0: done."