Mercurial > vim-gutentags
changeset 126:860558b2f9e8
Use `--text` with `grep`
Without this the `grep -v` might stop with "Binary file tags matches" if
there's "binary" contents, e.g. with a (broken?) Vim view file.
Using `--text` will keep those lines and not stop here, corrupting the
tags file.
author | Daniel Hahler <git@thequod.de> |
---|---|
date | Sat, 09 Apr 2016 15:22:10 +0200 |
parents | e1f787e8d77c |
children | db773e26e43b |
files | plat/unix/update_tags.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plat/unix/update_tags.sh Wed Apr 06 16:09:39 2016 +0200 +++ b/plat/unix/update_tags.sh Sat Apr 09 15:22:10 2016 +0200 @@ -74,7 +74,7 @@ if [ "$UPDATED_SOURCE" != "" ]; then echo "Removing references to: $UPDATED_SOURCE" tab=" " - cmd="grep -Ev '^[^$tab]+$tab$UPDATED_SOURCE$tab' '$TAGS_FILE' > '$TAGS_FILE.temp'" + cmd="grep --text -Ev '^[^$tab]+$tab$UPDATED_SOURCE$tab' '$TAGS_FILE' > '$TAGS_FILE.temp'" echo "$cmd" eval "$cmd" || true INDEX_WHOLE_PROJECT=0