#!/bin/sh
# find src files
find . ! -path ./exclude_dir_1\* -a \
! -path ./exclude_dir_2\* -a \
-regex “.*\.\(c\|h\|hpp\|cc\|cpp\|s\)” > cscope.files
# number is exact match, or else use search by default
ctags -L cscope.files –language=c:.c.h,c++:.cpp.hpp.cc,Asm:.s –excmd=number
cscope -bqk
Advertisement