From: Marcin Koziej Date: Thu, 6 Oct 2011 07:57:51 +0000 (+0200) Subject: make-tags: script to generate a TAGS file in project root. The tags are acquired... X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/a1f70206652af8e039fdd37bc99c3d49eb248e2f?ds=inline;hp=--cc make-tags: script to generate a TAGS file in project root. The tags are acquired from wolnelektury and all libs installed in virtualenv (should be run with virtualenv enabled) --- a1f70206652af8e039fdd37bc99c3d49eb248e2f diff --git a/scripts/make-tags b/scripts/make-tags new file mode 100755 index 000000000..1eba155bf --- /dev/null +++ b/scripts/make-tags @@ -0,0 +1,10 @@ +#!/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 \ No newline at end of file