helix-mirror/vendor/vendor_tree_sitter.sh
2024-07-15 18:23:41 +02:00

14 lines
284 B
Bash
Executable File

#!/usr/bin/env bash
REMOTE=https://github.com/tree-sitter/tree-sitter.git
BRANCH=v0.22.5
rm -rf tree-sitter
rm -rf tmp
git clone --depth 1 --branch $BRANCH $REMOTE tmp
mkdir tree-sitter
mv tmp/lib/src tree-sitter
mv tmp/lib/include tree-sitter
mv tmp/LICENSE tree-sitter
rm -rf tmp