# HG changeset patch # User Daniel Hahler # Date 1460208130 -7200 # Node ID 860558b2f9e88f7f91e3366766408610fa5c92c7 # Parent e1f787e8d77c6c6c580558a258c43e706ceee7d0 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. diff -r e1f787e8d77c -r 860558b2f9e8 plat/unix/update_tags.sh --- 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