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 5bd8b10..4a34ec5 100755 (executable)
@@ -164,10 +164,12 @@ case "$1" in
                ;;
 
        "tags")
+               rm -f tags
                xtags ctags
                ;;
 
        "TAGS")
+               rm -f TAGS
                xtags etags
                ;;
 esac