Skip to content

Instantly share code, notes, and snippets.

@Gautier
Forked from AdrienLemaire/todo.sh
Created May 21, 2011 11:56
Show Gist options
  • Save Gautier/984463 to your computer and use it in GitHub Desktop.
Save Gautier/984463 to your computer and use it in GitHub Desktop.
Find all the TODO in a django/android project which need to be fixed
#!/bin/sh
# Find all the TODO in the code which need to be fixed
# Android
if [ -f AndroidManifest.xml ]; then
echo '\nJava'
git grep -In "\(TODO\)\|\(XXX\)" -- '*.java'
echo "Resources"
git grep -In "\(TODO\)\|\(XXX\)" -- '*.xml'
fi
# Django
if [ -f manage.py ]; then
echo "Templates"
git grep -In "\(TODO\)\|\(XXX\)" -- '*.html'
echo '\nPython'
git grep -In "\(TODO\)\|\(XXX\)" -- '*.py'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment