cscope命令
#!/bin/bash
ROOTPATH=/home/yuyongjun/professor/navigation
list=cscope.files
SERCHPATH="./*"
if [ -e $list ]; then
rm $list
fi
for p in $SERCHPATH
do
#echo $p
WHOLEPATH=$ROOTPATH/$p
find $WHOLEPATH -name "*.c" >> $list
find $WHOLEPATH -name "*.h" >> $list
find $WHOLEPATH -name "*.S" >> $list
done
if [ -e $list ]; then
ctags -L $list --c++-kinds=+p --fields=+iaS --extra=+q
cscope -b -q -k
fi