Makistos
10/28/2013 - 8:06 AM

This is a part of a script that creates a list of files to be used by ctags (and cscope) as the file list to generate the tags file. I u

This is a part of a script that creates a list of files to be used by ctags (and cscope) as the file list to generate the tags file.

I use this with the command

ctags --C-kinds=+p --fields=+aS --extra=+q -L cscope.files

#cscope #ctags #vim #bash

find . -name "*.[ch]" -print
find $PATH1 \
    -path "*/examples/*" -prune -o \
    -name "*.[ch]" -print
find $PATH2 \
    -path "*/examples/*" -prune -o \
    -name "*.[ch]" -print
find $PATH3 \
    -path "*/example/*" -prune -o \
    -path "*/examples/*" -prune -o \
    -path "*/test/*" -prune -o \
    -path "*/test2/*" -prune -o \
    -path "*/instrumentation/*" -prune -o \
    -name "*.[ch]" -print