From: Marcin Koziej Date: Wed, 7 Nov 2012 10:30:24 +0000 (+0100) Subject: tags script X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/361f5a8e3f2520e2f63c9b2b432ccc51689e076a?ds=inline tags script --- diff --git a/scripts/make-tags b/scripts/make-tags new file mode 100755 index 00000000..0f2d26cc --- /dev/null +++ b/scripts/make-tags @@ -0,0 +1,13 @@ +#!/bin/bash + +ROOT=$(git rev-parse --show-toplevel) + +find $ROOT -name '*.py' | xargs etags -o ${ROOT}/TAGS +if [ -n "$VIRTUAL_ENV" ]; then + find ${VIRTUAL_ENV}/lib -name '*.py' |xargs etags -a -o ${ROOT}/TAGS +else + echo "No Virtual env enabled, will not add it to TAGS" +fi + +find $ROOT/redakcja/static/css -name '*.css' |xargs etags -a -o ${ROOT}/TAGS +find $ROOT/redakcja/static/js -name '*.js' |xargs etags -a -o ${ROOT}/TAGS