[Libreoffice-commits] .: bin/create-tags

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Fri Oct 15 05:26:34 PDT 2010


 bin/create-tags |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

New commits:
commit ca1a64045fe350984945cdc145e6c13e89e543e4
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Fri Oct 15 14:27:43 2010 +0200

    Fixed create-tags to work in rawbuild

diff --git a/bin/create-tags b/bin/create-tags
index 9575063..fe20241 100755
--- a/bin/create-tags
+++ b/bin/create-tags
@@ -1,7 +1,19 @@
 #!/bin/sh
 
 # create tags file for the whole OOo tree. run it in build/xyz680-mABC
-. ./*.Set.sh
+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 [ "$curren_dir" = "rawbuild" ]; then
+    cd ../clone
+fi
+
+if [ "$current_dir" == "clone" ]; then
+    . ../rawbuild/*.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