From a1f70206652af8e039fdd37bc99c3d49eb248e2f Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Thu, 6 Oct 2011 09:57:51 +0200 Subject: [PATCH] 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) --- scripts/make-tags | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/make-tags 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 -- 2.20.1