dotfiles/.bin/cscope-update

13 lines
344 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/bin/sh
. ~/.bin/_config
set -ex
find "${DEVDIR}" -type f \
\( -name "*.c" \
-o -name "*.cc" \
-o -name "*.cpp" \
-o -name "*.c" \
-o -name "*.hh" \
-o -name "*.hpp" \
\) > /home/sdk/cscope.files
cscope -qbkCRvf /home/sdk/cscope.out -i/home/sdk/cscope.files