qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./


From: Ryan Harper
Subject: [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./
Date: Wed, 1 Oct 2008 10:10:14 -0500

When using cscope integrated in $EDITOR, none of the commands seemed to work
even though make cscope generated the proper data.  Comparing the filelist that
is generated in QEMU's Makefile with what is generated from the Linux kernel's
make cscope, I noticed that the kernel's cscope filelist does not contain any
leading './' as is generated by the find command used in QEMU's make cscope.
Stripping the leading ./ out of the filelist fixes cscope function in $EDITOR.

Signed-off-by: Ryan Harper <address@hidden>

diff --git a/Makefile b/Makefile
index d57f791..cde8676 100644
--- a/Makefile
+++ b/Makefile
@@ -261,7 +261,7 @@ TAGS:
 
 cscope:
        rm -f ./cscope.*
-       find . -name "*.[ch]" -print > ./cscope.files
+       find . -name "*.[ch]" -print | sed 's,./,,' > ./cscope.files
        cscope -b
 
 # documentation




reply via email to

[Prev in Thread] Current Thread [Next in Thread]