Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build cscope.out files in a separate directory

Tags:

c

cscope

I've source code of a huge project in one directory (/my/src/) and I want the cscope files to be built in some other directory (/my/db/). How can I do that ?

like image 210
viji Avatar asked Jul 30 '12 09:07

viji


1 Answers

Try following steps:

1 . Generate cscope.files

find /my/src -name '*.c' -o -name '*.h' > /my/db/cscope.files

2 . Run cscope on the generated result

cscope -i /my/db/cscope.files

3 . Export to environment variable

CSCOPE_DB=/my/db/cscope.out; export CSCOPE_DB 
like image 96
Deqing Avatar answered Sep 28 '22 10:09

Deqing