Skip to content

Commit

Permalink
kbuild: remove a tag file before it is regenerated
Browse files Browse the repository at this point in the history
If a tag file is not removed before it is regenerated, the newly
generated data is appended to the old, which preserves stale data and
makes the tag file grow over time.

Signed-off-by: Matt Kraai <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
kraai authored and sravnborg committed May 1, 2009
1 parent c4d5ee6 commit 2e6cb8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ case "$1" in
;;

"tags")
rm -f tags
xtags ctags
;;

"TAGS")
rm -f TAGS
xtags etags
;;
esac

0 comments on commit 2e6cb8b

Please sign in to comment.