From 12c040553b253dff8cc5e98913a0d4ced98983d4 Mon Sep 17 00:00:00 2001 From: Yang Bai Date: Mon, 12 Mar 2012 16:20:51 +0800 Subject: [PATCH] --- yaml --- r: 298219 b: refs/heads/master c: 66979224c0d288331edcadb1e6ebd978d920d476 h: refs/heads/master i: 298217: 111342539bf0a9e3ed65301fa2cc47173cd946ae 298215: 5ec1b29a025b717b0879ec91a7ea9e5fc47fd73a v: v3 --- [refs] | 2 +- trunk/scripts/tags.sh | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 58ee6c59bba0..38919de2905e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 98bd46223322a84fdac235a0e40d97f9a1e3144c +refs/heads/master: 66979224c0d288331edcadb1e6ebd978d920d476 diff --git a/trunk/scripts/tags.sh b/trunk/scripts/tags.sh index 0bc8588b630f..0d6004e20658 100755 --- a/trunk/scripts/tags.sh +++ b/trunk/scripts/tags.sh @@ -166,9 +166,6 @@ exuberant() all_defconfigs | xargs -r $1 -a \ --langdef=dotconfig --language-force=dotconfig \ --regex-dotconfig='/^#?[[:blank:]]*(CONFIG_[[:alnum:]_]+)/\1/' - - # Remove structure forward declarations. - LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' tags } emacs() @@ -233,6 +230,7 @@ if [ "${ARCH}" = "um" ]; then fi fi +remove_structs= case "$1" in "cscope") docscope @@ -245,10 +243,17 @@ case "$1" in "tags") rm -f tags xtags ctags + remove_structs=y ;; "TAGS") rm -f TAGS xtags etags + remove_structs=y ;; 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 +fi