qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./
@ 2008-10-01 15:10 Ryan Harper
  2008-10-01 15:22 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Ryan Harper @ 2008-10-01 15:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Ryan Harper

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 <ryanh@us.ibm.com>

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-10-01 21:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-01 15:10 [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./ Ryan Harper
2008-10-01 15:22 ` Andreas Schwab
2008-10-01 15:29   ` Ryan Harper
2008-10-01 15:36     ` Laurent Desnogues
2008-10-01 21:45       ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).