From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl3LO-0005im-7C for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:10:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl3LM-0005iO-Pn for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:10:25 -0400 Received: from [199.232.76.173] (port=35339 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl3LM-0005iL-Iv for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:10:24 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:55241) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kl3LL-0004CG-Ob for qemu-devel@nongnu.org; Wed, 01 Oct 2008 11:10:24 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e2.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m91FAKBB012807 for ; Wed, 1 Oct 2008 11:10:20 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m91FAKFN227682 for ; Wed, 1 Oct 2008 11:10:20 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m91FAIZK018274 for ; Wed, 1 Oct 2008 11:10:19 -0400 From: Ryan Harper Date: Wed, 1 Oct 2008 10:10:14 -0500 Message-Id: <1222873814-32003-1-git-send-email-ryanh@us.ibm.com> Subject: [Qemu-devel] [PATCH] Fix cscope filelist by removing leading ./ Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 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