summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2009-07-03 15:56:28 +0200
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2009-07-03 15:56:28 +0200
commit7cd8ff65017e5a0693979317ff4005384383479b (patch)
tree992960ac6b3e97929d997f8fbda03e12015e23e6
parentf2163638231f049f67219c67ba851a7db9ea267f (diff)
Script and make target to create ctags file
* Makefile.shared: * bin/create-tags:
-rw-r--r--Makefile.shared13
-rwxr-xr-xbin/create-tags9
2 files changed, 20 insertions, 2 deletions
diff --git a/Makefile.shared b/Makefile.shared
index 36bc6a08f..e2ef7dc01 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 000000000..b30511649
--- /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 *