* [PATCH] scripts, Fix 'make cscope'
@ 2012-04-01 11:31 Prarit Bhargava
2012-04-01 11:56 ` Yang Bai
0 siblings, 1 reply; 3+ messages in thread
From: Prarit Bhargava @ 2012-04-01 11:31 UTC (permalink / raw)
To: linux-kernel; +Cc: Prarit Bhargava, Yang Bai, Stephen Boyd, Michal Marek
commit 66979224c0d288331edcadb1e6ebd978d920d476, scripts: refactor remove
structure forward declarations, breaks 'make cscope' which now gives the
following error:
[prarit@prarit linux-2.6]$ make cscope
GEN cscope
sed: can't read cscope: No such file or directory
make: *** [cscope] Error 2
Fix a typo in the commit.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: Yang Bai <hamo.by@gmail.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Michal Marek <mmarek@suse.cz>
---
scripts/tags.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 0d6004e..b501e84 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -255,5 +255,5 @@ esac
# Remove structure forward declarations.
if [ -n $remove_structs ]; then
- LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1
+ LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' tags
fi
--
1.7.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scripts, Fix 'make cscope'
2012-04-01 11:31 [PATCH] scripts, Fix 'make cscope' Prarit Bhargava
@ 2012-04-01 11:56 ` Yang Bai
2012-04-01 12:05 ` Cong Wang
0 siblings, 1 reply; 3+ messages in thread
From: Yang Bai @ 2012-04-01 11:56 UTC (permalink / raw)
To: Prarit Bhargava; +Cc: linux-kernel, Stephen Boyd, Michal Marek
On Sun, Apr 1, 2012 at 7:31 PM, Prarit Bhargava <prarit@redhat.com> wrote:
> commit 66979224c0d288331edcadb1e6ebd978d920d476, scripts: refactor remove
> structure forward declarations, breaks 'make cscope' which now gives the
> following error:
>
> [prarit@prarit linux-2.6]$ make cscope
> GEN cscope
> sed: can't read cscope: No such file or directory
> make: *** [cscope] Error 2
>
Thanks for pointing this out.
> Fix a typo in the commit.
>
> Signed-off-by: Prarit Bhargava <prarit@redhat.com>
> Cc: Yang Bai <hamo.by@gmail.com>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: Michal Marek <mmarek@suse.cz>
> ---
> scripts/tags.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/tags.sh b/scripts/tags.sh
> index 0d6004e..b501e84 100755
> --- a/scripts/tags.sh
> +++ b/scripts/tags.sh
> @@ -255,5 +255,5 @@ esac
>
> # Remove structure forward declarations.
> if [ -n $remove_structs ]; then
> - LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1
> + LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' tags
> fi
> --
> 1.7.1
>
But this does not fix the real problem and introduce the origin
problem of make TAGS back.
Could you try this patch?
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 0d6004e..cf7b12f 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -254,6 +254,6 @@ case "$1" in
esac
# Remove structure forward declarations.
-if [ -n $remove_structs ]; then
+if [ -n "$remove_structs" ]; then
LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct
\1;.*\$\/;"\tx$/d' $1
fi
--
"""
Keep It Simple,Stupid.
"""
Chinese Name: 白杨
Nick Name: Hamo
Homepage: http://hamobai.com/
GPG KEY ID: 0xA4691A33
Key fingerprint = 09D5 2D78 8E2B 0995 CF8E 4331 33C4 3D24 A469 1A33
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-01 12:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-01 11:31 [PATCH] scripts, Fix 'make cscope' Prarit Bhargava
2012-04-01 11:56 ` Yang Bai
2012-04-01 12:05 ` Cong Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®