Skip to content

Instantly share code, notes, and snippets.

Created Jul 12, 2011
What would you like to do?
XCode "Run Script" phase for printing TODOs and FIXMEs as warnings
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.mm" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment