-
-
Save nikomatsakis/5d352f9cf4b5ec6dd37303c37f05a4d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" == "" ]]; then | |
echo Usage: rust-ctags dirs... | |
exit 1 | |
fi | |
if [ ! -f "$DOTFILES/etc/ctags.rust" ]; then | |
echo ctags.rust definition not found, is '$DOTFILES' set? | |
echo Searched at: '$DOTFILES/etc/ctags.rust' == "'"$DOTFILES/etc/ctags.rust"'" | |
exit 1 | |
fi | |
rm -f TAGS | |
for SRCDIR in "$@"; do | |
echo "Indexing $SRCDIR" | |
if [ ! -d "$SRCDIR" ]; then | |
echo Source directory "'"$SRCDIR"'" not found. | |
exit 1 | |
fi | |
ctags -a -e -f TAGS --options="$DOTFILES/etc/ctags.rust" --languages=Rust --recurse "$SRCDIR" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment