776d9d97ceb65857361116e911cd1d69cbfc11e2
[wolnelektury.git] / scripts / make-tags
1 #!/bin/bash
2
3 ROOT=$(git rev-parse --show-toplevel)
4
5 find $ROOT -name '*.py' | xargs etags -o ${ROOT}/TAGS
6 find $ROOT/../librarian -name '*.py' | xargs etags -a -o ${ROOT}/TAGS
7 if [ -n "$VIRTUAL_ENV" ]; then
8   find ${VIRTUAL_ENV}/lib -name '*.py' |xargs etags -a -o ${ROOT}/TAGS
9 else
10     echo "No Virtual env enabled, will not add it to TAGS"
11 fi