changeset 194:4689b770e4fa

Fix generation for Homebrew cscope Also fixes #141.
author Chayoung You <yousbe@gmail.com>
date Wed, 19 Jul 2017 14:18:41 +0900
parents 25dbdb52adb5
children fd863d1bcfb9
files autoload/gutentags/cscope.vim plat/unix/update_scopedb.sh
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags/cscope.vim	Thu Jun 08 07:11:43 2017 -0700
+++ b/autoload/gutentags/cscope.vim	Wed Jul 19 14:18:41 2017 +0900
@@ -56,7 +56,7 @@
     let l:cmd .= ' -p ' . a:proj_dir
     let l:cmd .= ' -f ' . a:tags_file
     let l:file_list_cmd =
-        \ gutentags#get_project_file_list_cmd(l:proj_dir)
+        \ gutentags#get_project_file_list_cmd(a:proj_dir)
     if !empty(l:file_list_cmd)
         let l:cmd .= ' -L "' . l:file_list_cmd . '"'
     endif
--- a/plat/unix/update_scopedb.sh	Thu Jun 08 07:11:43 2017 -0700
+++ b/plat/unix/update_scopedb.sh	Wed Jul 19 14:18:41 2017 +0900
@@ -69,10 +69,10 @@
             echo "${PROJECT_ROOT%/}/${l}"
         done > "${DB_FILE}.files"
     fi
-    CSCOPE_ARGS="${CSCOPE_ARGS} -i ${DB_FILE}.files"
 else
-    CSCOPE_ARGS="${CSCOPE_ARGS} -R"
+    find . -type f > "${DB_FILE}.files"
 fi
+CSCOPE_ARGS="${CSCOPE_ARGS} -i ${DB_FILE}.files"
 
 echo "Running cscope"
 echo "$CSCOPE_EXE $CSCOPE_ARGS -b -k -f \"$DB_FILE.temp\""