David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
b5855d5
Branches
Tags
c++11
main
start
testcode.git
maketags.sh
Simplify maketags.sh
David Blume
commited
b5855d5
at 2017-12-30 16:34:11
maketags.sh
Blame
History
Raw
#/bin/bash set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ ctags -n --if0=yes --langmap=c++:+.inl --c++-kinds=+p --file-tags=yes -R --extra=fq \ --exclude=.git \ --exclude=obj \ --exclude=lib \ --exclude='*generated/*' find . -mindepth 1 \ -path './.git' -prune \ -or -path './include' -prune \ -or -path './lib' -prune \ -or -path '*/obj' -prune \ -or -path '*/generated' -prune \ -or -type d -print | while read i do pushd "$i" 1> /dev/null ctags -n --if0=yes --langmap=c++:+.inl --c++-kinds=+p --file-tags=yes -R --extra=fq \ --exclude=obj \ --exclude='*generated/*' popd 1> /dev/null done # Finally, there'll be empty tags files, unlink those find . -name tags -size -2 -print -delete