David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
4014774
Branches
Tags
c++11
main
start
testcode.git
maketags.sh
Remove unused ctags param; don't tag filenames
David Blume
commited
4014774
at 2017-12-31 00:57:22
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 -R --extra=q \ --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 -R --extra=q \ --exclude=obj \ --exclude='*generated/*' popd 1> /dev/null done # Finally, there'll be empty tags files, unlink those find . -name tags -size -2 -mtime -1 -delete