#!/usr/bin/env bash set -e if [ $# -gt 0 ] then pushd $1 fi find . -iname "*.h" -or -iname "*.cpp" | etags - find . -iname "*.td" | grep -v '^\./\(test/\|lib/Target/[^A]\)' | etags --language=none --regex='/\(defm?\|\(multi\)?class\)[ \t]+\([^ \t:<]+\)/\3/' -a - if [ $# -gt 0 ] then popd $1 fi