bin/myctags @ 8e22b36e5cba

More
author Steve Losh <steve@stevelosh.com>
date Wed, 17 Jul 2024 15:51:26 -0400
parents c05932aa401f
children (none)
#!/bin/bash

set -e

CTAGS=$(command -v ctags)
# $CTAGS -R . && sed -i.bak -E -e '/^[^	]+	[^	]+.py	.+v$/d' tags

$CTAGS -R --sort=yes --exclude='bazel-*' .
# mv tags tags1
# touch tags2

# echo '!_TAG_FILE_FORMAT	2	/extended format; --format=1 will not append ;" to lines/' >> tags2
# echo '!_TAG_FILE_SORTED	1	/0=unsorted, 1=sorted, 2=foldcase/' >> tags2

# cat tags1 tags2 | grep -Ev '^!' | grep -v 'anonymous_function' | sort >> tags

# rm tags1 tags2