On 14/02/09 12:13, Dominique Pelle wrote:
[...]
> This is how I build tags and the cscope DB for vim sources for
> example:
>
> =========================================
> #!/bin/sh
> TMP_FILE=/tmp/build-tags.$$
>
> find ~/sb/vim7/src -name '*.[ch]' -print> $TMP_FILE
> ctags -e -L $TMP_FILE --language-force=c --fields=+S --extra=+f+q -f ~/tags
For the Vim source, the src/Makefile (under the "tags" target) passes
not only *.[ch] files but *.c *.cpp if_perl.xs *.h (in that order, I
don't know if the order matters). Its options (defined in
src/auto/config.mk) are not as extensive as yours though. I'm talking
about the Linux build process, I don't even know if the various Windows
makefiles _have_ a "tags" target.
However, AFAICT the only C++ sources are if_ole.cpp and glbl_ime.cpp so
I guess the files you pass are all right if you build without the Perl
interface, and not on Windows.
>
> rm -f cscope.*
> cscope -i $TMP_FILE -b -q -f ~/cscope.out
>
> rm -f $TMP_FILE
> =========================================
[...]
Best regards,
Tony.
--
"The first rule of magic is simple. Don't waste your time waving your
hands and hoping when a rock or a club will do."
-- McCloctnik the Lucid
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---