[Libreoffice-commits] .: solenv/bin
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Thu Dec 16 05:51:49 PST 2010
solenv/bin/create-tags | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
New commits:
commit cec2b02eb656a52f226185ed94c487c83a970197
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date: Thu Dec 16 14:48:24 2010 +0100
Moved the create-tags script from build repo
diff --git a/solenv/bin/create-tags b/solenv/bin/create-tags
index 61295df..8ac1d5c 100755
--- a/solenv/bin/create-tags
+++ b/solenv/bin/create-tags
@@ -1,7 +1,20 @@
-#!/bin/sh
+#!/usr/bin/env sh
-# create tags file for the whole LibO tree. run it in toplevel dir
-. ./*.Set.sh
+# create tags file for the whole OOo tree. run it in build/xyz680-mABC
+current_dir=`basename $PWD`
+
+# Don't create the tags file in rawbuild: due to the links the editor
+# (at least Vim) will most likely consider to be in clone/repo folder.
+if [ -d $current_dir/clone ]; then
+ cd clone
+ current_dir=`basename $PWD`
+fi
+
+if [ "$current_dir" == "clone" ]; then
+ . ../*.Set.sh
+else
+ . ./*.Set.sh
+fi
omnicppoptions="--c++-kinds=+p --fields=+iaS --extra=+q"
ctags -h "+.hdl.hrc" --langmap=c:+.hdl.hrc.src $omnicppoptions \
More information about the Libreoffice-commits
mailing list