3 # Generate list of files to index with cscope.
5 # From the m5 directory, run:
6 # util/cscope-find.py > cscope.files
11 # absolute paths to skip
12 skipdirs
= [ 'src/unittest', 'src/doxygen' ]
14 # suffixes of files to index
15 suffixes
= [ '.cc', '.hh', '.c', '.h' ]
23 for dirpath
,subdirs
,files
in os
.walk('src'):
24 # filter out undesirable subdirectories
25 for i
,dir in enumerate(subdirs
):
30 # filter out undesriable absolute paths
31 if dirpath
in skipdirs
:
36 okfiles
= [f
for f
in files
if oksuffix(f
)]
38 print '\n'.join([os
.path
.join(dirpath
, f
) for f
in okfiles
])