tree-sitter-objc/examples/corpus.sh

7 lines
229 B
Bash
Raw Normal View History

2022-04-16 15:58:26 +00:00
#/bin/bash
BASE_DIR=$(git rev-parse --show-toplevel)
rm "${BASE_DIR}/examples/corpus.m" 2>/dev/null
cat "${BASE_DIR}/test/corpus/"* | sed -n '/===/,/---/p' | rg -vU '((=)+\n.*\n(=)+)|((-)+\n)' > "${BASE_DIR}/examples/corpus.m"