David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
eee2554
Branches
Tags
c++11
main
start
testcode.git
makecscope.sh
Have cscope ignore symbolic links.
David Blume
commited
eee2554
at 2017-12-30 14:10:49
makecscope.sh
Blame
History
Raw
#/bin/bash set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ find $PWD -regex ".*\.[hcHC]\(pp\|xx\)?" -and -type f | \ grep -v " \|/generated/" > 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"