Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CSCOPE_DIR="$PWD/cscope"
- if [ ! -d "$CSCOPE_DIR" ]; then
- mkdir "$CSCOPE_DIR"
- fi
- echo "Finding files ..."
- find "$PWD" -name '*.[ch]' \
- -o -name '*.java' \
- -o -name '*properties' \
- -o -name '*.cpp' \
- -o -name '*.cc' \
- -o -name '*.hpp' \
- -o -name '*.py' \
- -o -name '*.php' > "$CSCOPE_DIR/cscope.files"
- echo "Adding files to cscope db: $PWD/cscope.db ..."
- cscope -b -i "$CSCOPE_DIR/cscope.files"
- export CSCOPE_DB="$PWD/cscope.out"
- echo "Exported CSCOPE_DB to: '$CSCOPE_DB'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement