diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2006-12-13 14:33:32 -0500 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2006-12-13 14:33:32 -0500 |
commit | a983c4968cebeb9c2b67957934ffd26eb914b525 (patch) | |
tree | 082f2ce4a061d3c05b29d6a2cb5e5478c80120d4 /util/cscope-find.py | |
parent | 4947bf276eaa19d33c1af0bd0843dc23192fdd19 (diff) | |
parent | 5d42fd836b88c1a234a5d7ddd768422f9878e2df (diff) | |
download | gem5-a983c4968cebeb9c2b67957934ffd26eb914b525.tar.xz |
Merge zizzer:/bk/sparcfs
into zed.eecs.umich.edu:/z/hsul/work/sparc/m5
--HG--
extra : convert_revision : c6d174716641f0b8286b8478bcb9053b3eec54e3
Diffstat (limited to 'util/cscope-find.py')
-rwxr-xr-x | util/cscope-find.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/util/cscope-find.py b/util/cscope-find.py deleted file mode 100755 index 1775f1864..000000000 --- a/util/cscope-find.py +++ /dev/null @@ -1,38 +0,0 @@ -#! /usr/bin/python - -# Generate list of files to index with cscope. - -# From the m5 directory, run: -# util/cscope-find.py > cscope.files -# cscope -b - -import os - -# absolute paths to skip -skipdirs = [ 'src/unittest', 'src/doxygen' ] - -# suffixes of files to index -suffixes = [ '.cc', '.hh', '.c', '.h' ] - -def oksuffix(f): - for s in suffixes: - if f.endswith(s): - return True - return False - -for dirpath,subdirs,files in os.walk('src'): - # filter out undesirable subdirectories - for i,dir in enumerate(subdirs): - if dir == 'SCCS': - del subdirs[i] - break - - # filter out undesriable absolute paths - if dirpath in skipdirs: - del subdirs[:] - continue - - # find C/C++ sources - okfiles = [f for f in files if oksuffix(f)] - if okfiles: - print '\n'.join([os.path.join(dirpath, f) for f in okfiles]) |