b5855d54976d787c35b8917eaefd59997fc3e9c3
David Blume first commit

David Blume authored 8 years ago

1) #/bin/bash
2) set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/
3) 
4) ctags -n --if0=yes --langmap=c++:+.inl --c++-kinds=+p --file-tags=yes -R --extra=fq \
David Blume Make ctags and cscope more...

David Blume authored 6 years ago

5)     --exclude=.git \
David Blume Simplify maketags.sh

David Blume authored 6 years ago

6)     --exclude=obj \
7)     --exclude=lib \
David Blume first commit

David Blume authored 8 years ago

8)     --exclude='*generated/*'
9) 
10) find . -mindepth 1 \
David Blume Simplify maketags.sh

David Blume authored 6 years ago

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
David Blume first commit

David Blume authored 8 years ago

17) do
18)     pushd "$i" 1> /dev/null
19)     ctags -n --if0=yes --langmap=c++:+.inl --c++-kinds=+p --file-tags=yes -R --extra=fq \
David Blume Simplify maketags.sh

David Blume authored 6 years ago

20)         --exclude=obj \
David Blume first commit

David Blume authored 8 years ago

21)         --exclude='*generated/*'
22)     popd 1> /dev/null
23) done
24) 
25) # Finally, there'll be empty tags files, unlink those