Latest: Photobox are looking for a Build System Engineer

Content with Style

Web Technique

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".

Comments

Don't miss the opportunity to leave the first comment.

Leave your comment

Comments are moderated.
Tags allowed: a, strong, em, code, ul, ol, li, q, blockquote, br, p

Advertisement
Advertisement