David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
addc06d
Branches
Tags
c++11
main
start
testcode.git
makecscope.sh
Prune .git directory in find command.
dblume
commited
addc06d
at 2022-07-03 14:16:49
makecscope.sh
Blame
History
Raw
#/bin/bash set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ # macOS find doesn't have -printf so maybe can "find . ... -print" find $PWD \( -path '*/generated' -prune -or -path '*/.git' -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"