David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
ab741ca
Branches
Tags
c++11
main
start
testcode.git
makecscope.sh
Update way to make cscope.files list. If sent to ctags, it better matches ctags default output too.
David Blume
commited
ab741ca
at 2018-01-02 18:20:39
makecscope.sh
Blame
History
Raw
#/bin/bash set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ find $PWD -path '*/generated' -prune -or \ -regex ".*\.[hcHC]\(pp\|xx\)?" -type f -printf '%P\n' > cscope.files # -b = Build database. # -q = Enable fast symbol lookup via an inverted index. # -R = (Instead of using cscope.files) Recurse subdirectories. # -k = Kernel mode. (Ignore /usr/include) cscope -q -b -k echo "You can now use \`cscope -d\` # Run cscope without updating cross reference"