Rij
June 26th, 2007, 03:13 AM
Hello,
I am new to the Linux and in general, the Unix world. I am learning how to use Cscope to browse the source code. I downloaded the Cscope package from the distribution CD. Then I follow the exact guidelines as provided in the Cscope sourceforge help site
http://cscope.sourceforge.net/large_projects.html
The cscope.files look like this:
LNX=/home/arijit/linux-2.6.17
cd /
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 \
-name "*.[chxsS]" -print >/home/arijit/cscope/cscope.files
However, when I run the command: cscope -b -q -k
I get the following error:
cscope: cannot find file LNX=/home/arijit/linux-2.6.17
cscope: cannot find file 6.17
cscope: cannot find file cd
cscope: cannot find file cd
cscope: cannot find file find
cscope: cannot find file find
cscope: cannot find file $LNX
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/arch/*
cscope: cannot find file !
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file $LNX/arch/i386*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/include/asm-*
cscope: cannot find file !
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file $LNX/include/asm-i386*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/tmp*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/Documentation*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/scripts*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/drivers*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file *.[chxsS]
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file >/home/arijit/cscope/cscope.files
Cannot open file /
cscope: cannot create inverted index; ignoring -q option
cscope: removed files ncscope.in.out and ncscope.po.out
Any help will be highly appreciated.
Thanks in advance.
I am new to the Linux and in general, the Unix world. I am learning how to use Cscope to browse the source code. I downloaded the Cscope package from the distribution CD. Then I follow the exact guidelines as provided in the Cscope sourceforge help site
http://cscope.sourceforge.net/large_projects.html
The cscope.files look like this:
LNX=/home/arijit/linux-2.6.17
cd /
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 \
-name "*.[chxsS]" -print >/home/arijit/cscope/cscope.files
However, when I run the command: cscope -b -q -k
I get the following error:
cscope: cannot find file LNX=/home/arijit/linux-2.6.17
cscope: cannot find file 6.17
cscope: cannot find file cd
cscope: cannot find file cd
cscope: cannot find file find
cscope: cannot find file find
cscope: cannot find file $LNX
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/arch/*
cscope: cannot find file !
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file $LNX/arch/i386*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/include/asm-*
cscope: cannot find file !
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file $LNX/include/asm-i386*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/tmp*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/Documentation*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/scripts*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file h
cscope: cannot find file $LNX/drivers*
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file \
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: only -I, -c, -k, -p, and -T options can be in file cscope.files
cscope: cannot find file *.[chxsS]
cscope: -p option in file cscope.files: missing or invalid numeric value
cscope: cannot find file >/home/arijit/cscope/cscope.files
Cannot open file /
cscope: cannot create inverted index; ignoring -q option
cscope: removed files ncscope.in.out and ncscope.po.out
Any help will be highly appreciated.
Thanks in advance.