David Blume commited on 2017-12-30 16:34:11
Showing 1 changed files, with 10 additions and 10 deletions.
... | ... |
@@ -3,24 +3,24 @@ set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ |
3 | 3 |
|
4 | 4 |
ctags -n --if0=yes --langmap=c++:+.inl --c++-kinds=+p --file-tags=yes -R --extra=fq \ |
5 | 5 |
--exclude=.git \ |
6 |
- --exclude='obj/*' \ |
|
7 |
- --exclude='lib/*' \ |
|
6 |
+ --exclude=obj \ |
|
7 |
+ --exclude=lib \ |
|
8 | 8 |
--exclude='*generated/*' |
9 | 9 |
|
10 | 10 |
find . -mindepth 1 \ |
11 |
- '(' -path './include' ')' -prune \ |
|
12 |
- -or '(' -path './.git' ')' -prune \ |
|
13 |
- -or '(' -path './lib' ')' -prune \ |
|
14 |
- -or '(' -path '*/generated' ')' -prune \ |
|
15 |
- -or '(' -type d ')' -print | while read i |
|
11 |
+ -path './.git' -prune \ |
|
12 |
+ -or -path './include' -prune \ |
|
13 |
+ -or -path './lib' -prune \ |
|
14 |
+ -or -path '*/obj' -prune \ |
|
15 |
+ -or -path '*/generated' -prune \ |
|
16 |
+ -or -type d -print | while read i |
|
16 | 17 |
do |
17 | 18 |
pushd "$i" 1> /dev/null |
18 | 19 |
ctags -n --if0=yes --langmap=c++:+.inl --c++-kinds=+p --file-tags=yes -R --extra=fq \ |
19 |
- --exclude='obj/*' \ |
|
20 |
- --exclude='lib/*' \ |
|
20 |
+ --exclude=obj \ |
|
21 | 21 |
--exclude='*generated/*' |
22 | 22 |
popd 1> /dev/null |
23 | 23 |
done |
24 | 24 |
|
25 | 25 |
# Finally, there'll be empty tags files, unlink those |
26 |
-find . -name tags -size -2 -print | xargs rm |
|
26 |
+find . -name tags -size -2 -print -delete |
|
27 | 27 |