Update way to make cscope.files list. If sent to ctags, it better matches ctags default output too.
David Blume

David Blume commited on 2018-01-02 18:20:39
Showing 1 changed files, with 2 additions and 2 deletions.

... ...
@@ -1,8 +1,8 @@
1 1
 #/bin/bash
2 2
 set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/
3 3
 
4
-find $PWD -regex ".*\.[hcHC]\(pp\|xx\)?" -and -type f | \
5
-    grep -v " \|/generated/" > cscope.files
4
+find $PWD -path '*/generated' -prune -or \
5
+    -regex ".*\.[hcHC]\(pp\|xx\)?" -type f -printf '%P\n' > cscope.files
6 6
 
7 7
 # -b = Build database.
8 8
 # -q = Enable fast symbol lookup via an inverted index.
9 9