changeset 235:def58b9d22c6

Exclude cscope from default file list command With default setup gutentags generate file list for cscope using simple `find -type f` command in update_scopedb.sh. Subsequent invocations of this script causes unbounded growth of cscope database because cscope indexes itself every time. This change excludes cscope database file from default file list command for cscope database generation so it will work properly by default. Another option is to use custom file list command like `ag -l` that will generate files known to source control, that is without cscope database file.
author Alex Dzyoba <alex@dzyoba.com>
date Tue, 18 Dec 2018 23:32:20 +0300
parents b9babbd3c0fa
children a77c3eb4ce34
files plat/unix/update_scopedb.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plat/unix/update_scopedb.sh	Fri Dec 21 17:50:17 2018 +0900
+++ b/plat/unix/update_scopedb.sh	Tue Dec 18 23:32:20 2018 +0300
@@ -70,7 +70,7 @@
         done > "${DB_FILE}.files"
     fi
 else
-    find . -type f > "${DB_FILE}.files"
+    find . -type f ! -name ${DB_FILE} > "${DB_FILE}.files"
 fi
 CSCOPE_ARGS="${CSCOPE_ARGS} -i ${DB_FILE}.files"