Cscope on FreeBSD

I definitely can’t survive without cscope. Now that I am hacking FreeBSD, I was not able to find `make cscope` as we have in Linux.

Thus, I created this very simple script to index the whole FreeBSD kernel.

find . -name "*.[chxsS]" -print | grep -v arm64 | grep -v riscv | grep -v x86 | grep -v i386 | grep -v mips> cscope.files
cscope -q -b -k cscope.files
Advertisements