[PATCH] kbuild: incremental tags updating with GNU GLOBAL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Instead of generating the tag database each time the target is ran, is better
just update incrementally the database. It will expend less time.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@xxxxxxxxxx>
---
 scripts/tags.sh |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index 75c5d24..6a2fedc 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -116,7 +116,11 @@ docscope()
 
 dogtags()
 {
-	all_sources | gtags -f -
+	if global -p; then
+		global -u
+	else
+		all_sources | gtags -f -
+	fi
 }
 
 exuberant()
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux