[ooo-build-commit] bin/create-tags Makefile.shared

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Fri Jul 3 06:56:10 PDT 2009


 Makefile.shared |   13 +++++++++++--
 bin/create-tags |    9 +++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)

New commits:
commit 7cd8ff65017e5a0693979317ff4005384383479b
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Fri Jul 3 15:56:28 2009 +0200

    Script and make target to create ctags file
    
    * Makefile.shared:
    * bin/create-tags:

diff --git a/Makefile.shared b/Makefile.shared
index 36bc6a0..e2ef7dc 100644
--- a/Makefile.shared
+++ b/Makefile.shared
@@ -88,12 +88,15 @@ $(STAMP_DIR)/build.tools : $(STAMP_DIR)/prebuild
 	cd $(top_srcdir)/bin ; ./build-tools
 	touch $@
 
-build : $(STAMP_DIR)/build
-$(STAMP_DIR)/build : $(OOBUILDDIR)/unpack \
+build.prepare : $(STAMP_DIR)/build_prepared
+$(STAMP_DIR)/build_prepared : $(OOBUILDDIR)/unpack \
 		     $(STAMP_DIR)/patch.apply \
 		     $(STAMP_DIR)/artwork.install \
 		     $(STAMP_DIR)/build.tools \
 		     $(STAMP_DIR)/prebuild
+	touch $@
+build : $(STAMP_DIR)/build
+$(STAMP_DIR)/build : $(STAMP_DIR)/build_prepared
 	cd $(top_srcdir)/bin ; ./build-ooo
 	touch $@
 
@@ -119,6 +122,10 @@ id : $(OOBUILDDIR)/ID
 $(OOBUILDDIR)/ID : $(STAMP_DIR)/build
 	cd $(OOBUILDDIR); $(TOOLSDIR)/bin/create-ids
 
+tags: $(OOBUILDDIR)/tags
+$(OOBUILDDIR)/tags: $(STAMP_DIR)/build_prepared
+	cd $(OOBUILDDIR); $(TOOLSDIR)/bin/create-tags
+
 gitignore : $(OOBUILDDIR)/.gitignore
 $(OOBUILDDIR)/.gitignore : $(OOBUILDDIR)/unpack
 	cd $(OOBUILDDIR); $(TOOLSDIR)/bin/create-gitignores.sh
@@ -138,8 +145,10 @@ help:
 	@echo ""
 	@echo "    * dev-install:     installs with links to the build tree"
 	@echo "    * id:              generates the GNU ID database"
+	@echo "    * tags:            generates the tags file"
 	@echo "    * gitignore:       creates the default .gitignore file in the unpacked sources"
 	@echo "    * smoketest:       runs the automated tests"
 	@echo "    * patch.apply:     applies the patches to the sources"
 	@echo "    * patch.unapply:   revert the applied patches"
 	@echo "    * patch.list:      list the applied patches"
+	@echo "    * build.prepare:   runs everything before the real build"
diff --git a/bin/create-tags b/bin/create-tags
new file mode 100755
index 0000000..b305116
--- /dev/null
+++ b/bin/create-tags
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# create tags file for the whole OOo tree. run it in build/xyz680-mABC
+. ./*.Set.sh
+
+omnicppoptions="--c++-kinds=+p --fields=+iaS --extra=+q"
+ctags -h "+.hdl.hrc" --langmap=c:+.hdl.hrc.src $omnicppoptions \
+      -R --exclude=${INPATH/./\\.} --exclude=binfilter --exclude=solver \
+      --totals=yes --sort=foldcase *


More information about the ooo-build-commit mailing list