-
Notifications
You must be signed in to change notification settings - Fork 11
/
create_cscope_db.sh
executable file
·22 lines (20 loc) · 1.06 KB
/
create_cscope_db.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
WORKDIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
rm -rf $WORKDIR/cscope.*
LNX=$WORKDIR/linux
find $LNX \
-path "$LNX/arch/*" ! -path "$LNX/arch/i386*" -prune -o \
-path "$LNX/include/asm-*" ! -path "$LNX/include/asm-i386*" -prune -o \
-path "$LNX/tmp*" -prune -o \
-path "$LNX/Documentation*" -prune -o \
-path "$LNX/scripts*" -prune -o \
-path "$LNX/drivers*" -prune -o \
-path "$LNX/tools*" -prune -o \
-path "$LNX/samples*" -prune -o \
-path "$LNX/sound*" -prune -o \
-path "$LNX/init*" -prune -o \
-path "$LNX/virt*" -prune -o \
-path "$LNX/usr*" -prune -o \
-path "$LNX/lib*" -prune -o \
-path "$LNX/crypto*" -prune -o \
-name "*.[ch]" -print > cscope.files
cscope -b -q -k