Quick lint check on changed php files with svn st and xargs
by Pascal Opitz on October 20 2009, 10:12
If you haven't done it in a hook already, here's the quick way to check all your changed files for syntax errors:
svn st | grep .php | grep M | cut -c 8- | xargs -n1 php -l
I use xargs quite a lot lately, but some good clues came from David Singletons post "Using xargs like you mean it".