1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh :>TAGS :>tags for dir in . /usr/share/pyshared/django; do find $dir -name '*.py' | etags -a - find $dir -name '*.py' | ctags -a - find $dir -name '*.js' | etags -a - find $dir -name '*.js' | ctags -a - find $dir -name '*.html' | etags -a --regex='/.*{%[ \t]+block[ \t]+\([^ \t%]+\)/\1/' - find $dir -name '*.html' | ctags -a --regex='/.*{%[ \t]+block[ \t]+\([^ \t%]+\)/\1/' - done |
Comments
I do something like that, but instead of hardcoding '.' and '/usr/share/pyshared/django' for every project I am working on I tend to have 'PYTHONPATH' set up so I use this pattern:
#