qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: qemu-devel@nongnu.org
Cc: Ryan Harper <ryanh@us.ibm.com>
Subject: [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./
Date: Wed,  1 Oct 2008 10:10:14 -0500	[thread overview]
Message-ID: <1222873814-32003-1-git-send-email-ryanh@us.ibm.com> (raw)

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

             reply	other threads:[~2008-10-01 15:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 15:10 Ryan Harper [this message]
2008-10-01 15:22 ` [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./ Andreas Schwab
2008-10-01 15:29   ` Ryan Harper
2008-10-01 15:36     ` Laurent Desnogues
2008-10-01 21:45       ` Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1222873814-32003-1-git-send-email-ryanh@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).