Skip to content

Instantly share code, notes, and snippets.

@kwk
Created September 16, 2011 10:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwk/1221737 to your computer and use it in GitHub Desktop.
Save kwk/1221737 to your computer and use it in GitHub Desktop.
Check PHP-files (added/modified/removed/or unknown) in Mercurial for PHP-Syntax errors
for i in `hg st --no-status $(hg root)`; do mimetype $i | grep php > /dev/null && php -l $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment