]> git.saurik.com Git - wxWidgets.git/commitdiff
share ctags command between make(gtk/mac)tags scripts
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2007 13:47:38 +0000 (13:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2007 13:47:38 +0000 (13:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

misc/scripts/makegtktags
misc/scripts/makemactags.sh
misc/scripts/makeunixtags.sh [new file with mode: 0644]

index 608e3cf232e037621b0c35ba4e35586825e90340..c314c50c2c0941188a17baf2521ecc7507753038 100755 (executable)
@@ -1,22 +1,4 @@
 #!/bin/sh
-ctags --totals --language-force=c++ -I WXDLLEXPORT \
-       include/wx/*.h \
-       include/wx/aui/*.h \
-       include/wx/generic/*.h \
-       include/wx/gtk/*.h \
-       include/wx/html/*.h \
-       include/wx/protocol/*.h \
-       include/wx/richtext/*.h \
-       include/wx/xml/*.h \
-       include/wx/xrc/*.h \
-       include/wx/unix/*.h \
-       src/aui/*.cpp \
-       src/common/*.cpp \
-       src/generic/*.cpp \
-       src/gtk/*.cpp \
-       src/html/*.cpp \
-       src/richtext/*.cpp \
-       src/unix/*.cpp \
-       src/xml/*.cpp \
-       src/xrc/*.cpp
+. `dirname $0`/makeunixtags.sh
 
+create_tags gtk
index 8669345ace7bd6783c43593d23625353ce908c62..bcbccaf7a3a3afdf70d96c3a5a0aeac482487aeb 100644 (file)
@@ -1,22 +1,4 @@
 #!/bin/sh
-ctags --totals --language-force=c++ -I WXDLLEXPORT \
-       include/wx/*.h \
-       include/wx/generic/*.h \
-       include/wx/html/*.h \
-       include/wx/mac/*.h \
-       include/wx/mac/carbon/*.h \
-       include/wx/mac/corefoundation/*.h \
-       include/wx/mac/private/*.h \
-       include/wx/protocol/*.h \
-       include/wx/xml/*.h \
-       include/wx/xrc/*.h \
-       include/wx/unix/*.h \
-       src/common/*.cpp \
-       src/generic/*.cpp \
-       src/html/*.cpp \
-       src/mac/carbon/*.cpp \
-       src/mac/corefoundation/*.cpp \
-       src/unix/*.cpp \
-       src/xml/*.cpp \
-       src/xrc/*.cpp
+. `dirname $0`/makeunixtags.sh
 
+create_tags mac/{carbon,corefoundation}
diff --git a/misc/scripts/makeunixtags.sh b/misc/scripts/makeunixtags.sh
new file mode 100644 (file)
index 0000000..f5c3ee8
--- /dev/null
@@ -0,0 +1,51 @@
+##############################################################################
+# Name:       misc/scripts/makeunixtags.sh
+# Purpose:    create tags file for a wxWidgets port under a Unix system
+# Created:    2007-05-05
+# RCS-ID:     $Id$
+# Copyright:  (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
+# Licence:    wxWindows licence
+##############################################################################
+
+# this function should be called with a single parameter containing addition
+# port-specific directories to scan
+function create_tags()
+{
+ctags --totals --c++-kinds=+px --language-force=c++ \
+       -I WXDLLEXPORT_DATA+ -I WXDLLEXPORT \
+       -I WXDLLIMPEXP_DATA_ADV+ -I WXDLLIMPEXP_ADV \
+       -I WXDLLIMPEXP_DATA_AUI+ -I WXDLLIMPEXP_AUI \
+       -I WXDLLIMPEXP_DATA_BASE+ -I WXDLLIMPEXP_BASE \
+       -I WXDLLIMPEXP_DATA_CORE+ -I WXDLLIMPEXP_CORE \
+       -I WXDLLIMPEXP_DATA_DBGRID+ -I WXDLLIMPEXP_DBGRID \
+       -I WXDLLIMPEXP_DATA_HTML+ -I WXDLLIMPEXP_HTML \
+       -I WXDLLIMPEXP_DATA_GL+ -I WXDLLIMPEXP_GL \
+       -I WXDLLIMPEXP_DATA_MEDIA+ -I WXDLLIMPEXP_MEDIA \
+       -I WXDLLIMPEXP_DATA_NET+ -I WXDLLIMPEXP_NET \
+       -I WXDLLIMPEXP_DATA_ODBC+ -I WXDLLIMPEXP_ODBC \
+       -I WXDLLIMPEXP_DATA_QA+ -I WXDLLIMPEXP_QA \
+       -I WXDLLIMPEXP_DATA_RICHTEXT+ -I WXDLLIMPEXP_RICHTEXT \
+       -I WXDLLIMPEXP_DATA_STC+ -I WXDLLIMPEXP_STC \
+       -I WXDLLIMPEXP_DATA_XML+ -I WXDLLIMPEXP_XML \
+       -I WXDLLIMPEXP_DATA_XRC+ -I WXDLLIMPEXP_XRC \
+       include/wx/*.h \
+       include/wx/aui/*.h \
+       include/wx/generic/*.h \
+       include/wx/$1/*.h \
+       include/wx/$1/private/*.h \
+       include/wx/html/*.h \
+       include/wx/protocol/*.h \
+       include/wx/richtext/*.h \
+       include/wx/xml/*.h \
+       include/wx/xrc/*.h \
+       include/wx/unix/*.h \
+       src/aui/*.cpp \
+       src/common/*.cpp \
+       src/generic/*.cpp \
+       src/$1/*.cpp \
+       src/html/*.cpp \
+       src/richtext/*.cpp \
+       src/unix/*.cpp \
+       src/xml/*.cpp \
+       src/xrc/*.cpp
+}