使用cscope命令
find . -name "*.h" -o -name "*.c" -o -name "*.cc" -o -name "*.java" -o -name "*.cpp" > cscope.files
cscope -bkq -i cscope.files
ctags -RL cscope.files
find . -not -wholename '*.svn*' -regex '.*\.\(c\|cpp\|java\|cc\)' -type f -printf "%f\t%p\t1\n" | sort -f >> tags.fn