2 # pls put it under /usr/local/bin
5 [ -a tags
] && rm -f tags
7 [ -a cscope.out
] && rm -f cscope.out
8 if [ "$1" = "cscope" ]; then
12 if [ "$containkernel" = "-k" ]; then
13 #if mode include kernel path, in cscope did not contain -k will searh kernel path default
14 cscope
$flagscscope 2>/dev
/null
16 cscope
$flagscscope -k 2>/dev
/null
19 if [ "$ret" != "0" ]; then
20 echo "can not make cscope here"
24 echo "make cscope success -_-"
29 find -L .
-name "*.[chsS]" -o -name "*.cpp" |
xargs ctags
-a 2>/dev
/null
31 if [ "$ret" != "0" ]; then
32 echo "here not exists soure files"
35 echo "make ctags success :-)"