projects
/
mailer.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
00c4a2c545218402502edfebac78a36eb112910b
[mailer.git]
/
DOCS
/
lint.sh
1
#!/bin/sh
2
3
echo "$0: Analysing PHP scripts for syntax errors (lint) ..."
4
LINT=`find -type f -name "*.php" -exec php -l -f {} 2>&1 \; | grep -v "No syntax errors detected in"`
5
6
if test "${LINT}" != ""; then
7
echo "${LINT}"
8
else
9
echo "$0: No syntax errors found."
10
fi