Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298219
b: refs/heads/master
c: 6697922
h: refs/heads/master
i:
  298217: 1113425
  298215: 5ec1b29
v: v3
  • Loading branch information
Yang Bai authored and Michal Marek committed Mar 26, 2012
1 parent 52eab1e commit 12c0405
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98bd46223322a84fdac235a0e40d97f9a1e3144c
refs/heads/master: 66979224c0d288331edcadb1e6ebd978d920d476
11 changes: 8 additions & 3 deletions trunk/scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -233,6 +230,7 @@ if [ "${ARCH}" = "um" ]; then
fi
fi

remove_structs=
case "$1" in
"cscope")
docscope
Expand All @@ -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

0 comments on commit 12c0405

Please sign in to comment.