kbuild: remove a tag file before it is regenerated
authorMatt Kraai <kraai@ftbfs.org>
Wed, 22 Apr 2009 03:38:23 +0000 (20:38 -0700)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 1 May 2009 08:54:02 +0000 (10:54 +0200)
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 <kraai@ftbfs.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/tags.sh

index 5bd8b1003d446b1f4e80dd7e9a788685263a3a6e..4a34ec591e8c05f224f4900028f0e25f99e9eeba 100755 (executable)
@@ -164,10 +164,12 @@ case "$1" in
                ;;
 
        "tags")
+               rm -f tags
                xtags ctags
                ;;
 
        "TAGS")
+               rm -f TAGS
                xtags etags
                ;;
 esac