util: Delete authors lists from files in util.
[gem5.git] / util / cscope-index.py
index 1e653235f080a810c72a0b372fab2f2e422c1b16..5498053e93d3834acb6e66241c034e32c56c751e 100755 (executable)
@@ -24,8 +24,6 @@
 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors: Steve Reinhardt
 
 # Generate list of files to index with cscope and then generate cscope index.
 
@@ -46,8 +44,9 @@ def oksuffix(f):
     return False
 
 file_list = file('cscope.files', 'w')
+cwd = os.getcwd()
 
-for dirpath,subdirs,files in os.walk('src'):
+for dirpath,subdirs,files in os.walk(os.path.join(cwd, 'src')):
     # filter out undesirable subdirectories
     for i,dir in enumerate(subdirs):
         if dir == 'SCCS':