scripts, Fix 'make cscope'
PATCH 1/1 scripts, Fix 'make cscope'
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.
--- scripts/tags.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/tags.sh +1 -1
@@ -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
Signature · 1 line
1.7.1
Quoted 9 lines · Prarit Bhargava
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.
Quoted 17 lines
Fix a typo in the commit.
Signed-off-by Prarit Bhargava <[email protected]>Cc Yang Bai <[email protected]>Cc Stephen Boyd <[email protected]>Cc Michal Marek <[email protected]>---
scripts/tags.sh | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)scripts/tags.sh +0
-0@@ -255,5 +255,5 @@ esac # Remove structure forward declarations.
Quoted 7 lines
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?
scripts/tags.sh +1 -1
@@ -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 fi
Signature · 9 lines
""" 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
Quoted 5 lines · Yang Bai
But this does not fix the real problem and introduce the origin problem of make TAGS back.
Could you try this patch?
There was already a same patch:
https://lkml.org/lkml/2012/4/1/12