dblume commited on 2022-07-03 14:16:49
Showing 1 changed files, with 2 additions and 1 deletions.
... | ... |
@@ -1,7 +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 -path '*/generated' -prune -or \ |
|
4 |
+# macOS find doesn't have -printf so maybe can "find . ... -print" |
|
5 |
+find $PWD \( -path '*/generated' -prune -or -path '*/.git' -prune \) -or \ |
|
5 | 6 |
-regex ".*\.[hcHC]\(pp\|xx\)?" -type f -printf '%P\n' > cscope.files |
6 | 7 |
|
7 | 8 |
# -b = Build database. |
8 | 9 |