views:

222

answers:

0

How do I tell cscope to ignore symbolic links when it is recursively traversing a directory to index source code files?

I do something like this:

find . \( -name "*".hh -or -name "*".h -or -name "*".hxx -or -name "*".H -or -name "*".C -or -name "*".cxx -or -name "*".c -or -name "*".cc \) -type f -print > cscope.files
cscope -qb

There are two issues: 1. Get rid of find. 2. Avoid going into sym links to directories.