aboutsummaryrefslogtreecommitdiff
path: root/scripts/update-ts-runtime.sh
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-11-03 13:36:25 +0100
committerGitHub <noreply@github.com>2020-11-03 13:36:25 +0100
commita766695c8b2c0b53b0b9f9f17bcff117183b21f9 (patch)
treed92dde6246c41e43432ca169e3d1ca3f4af290b7 /scripts/update-ts-runtime.sh
parenta061d53e18168130aad537a9e8012390834ff8c2 (diff)
parent8e73cf67314095fe7240be5e57232ea3d20aac94 (diff)
downloadrneovim-a766695c8b2c0b53b0b9f9f17bcff117183b21f9.tar.gz
rneovim-a766695c8b2c0b53b0b9f9f17bcff117183b21f9.tar.bz2
rneovim-a766695c8b2c0b53b0b9f9f17bcff117183b21f9.zip
Merge pull request #12931 from vigoux/treesitter-bundled
bundle: move tree-sitter as a bundled dep
Diffstat (limited to 'scripts/update-ts-runtime.sh')
-rwxr-xr-xscripts/update-ts-runtime.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/scripts/update-ts-runtime.sh b/scripts/update-ts-runtime.sh
deleted file mode 100755
index 1a947e0ac9..0000000000
--- a/scripts/update-ts-runtime.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-#
-# This script will update the treesitter runtime to the provided commit.
-# Usage :
-# $0 <tree-sitter commit sha>
-set -e
-
-ts_source_dir="/tmp/tree-sitter"
-ts_url="https://github.com/tree-sitter/tree-sitter.git"
-
-base_dir="$(cd "$(dirname $(dirname $0))" && pwd)"
-ts_dest_dir="$base_dir/src/tree_sitter/"
-ts_current_commit="$ts_dest_dir/treesitter_commit_hash.txt"
-
-echo "Updating treesitter runtime from $(cat "$ts_current_commit") to $1..."
-
-if [ ! -d "$ts_source_dir" ]; then
- echo "Cloning treesitter..."
- git clone "$ts_url" "$ts_source_dir"
-else
- echo "Found a non-empty $ts_source_dir directory..."
- git -C "$ts_source_dir" fetch
-fi
-
-echo "Checking out $1..."
-git -C "$ts_source_dir" checkout $1
-
-echo "Removing old files..."
-find "$ts_dest_dir" -not -name "LICENSE" -not -name "README.md" -not -type d -delete
-
-echo "Copying files..."
-cp -t "$ts_dest_dir" -r "$ts_source_dir/lib/src"/*
-cp -t "$ts_dest_dir" "$ts_source_dir/lib/include/tree_sitter"/*
-
-echo "$1" > "$ts_current_commit"
-
-make
-TEST_FILE="$base_dir/test/functional/lua/treesitter_spec.lua" make test
-