Split script to update a submodule in two scripts
Since a CI system uses the commit present in a repository that already contain the differences, it is not necessary to update the tree-sitter-language
This commit is contained in:
Родитель
f9a4a9cbaf
Коммит
ff58260463
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Recreate the language
|
||||
pushd enums
|
||||
cargo clean
|
||||
cargo run -- -lrust -o ../src/languages
|
||||
popd
|
||||
|
||||
# Format the code
|
||||
cargo fmt
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Update tree-sitter submodule
|
||||
#
|
||||
# Usage: ./update-submodule.sh $tree-sitter-language
|
||||
|
||||
# Update submodule
|
||||
git submodule update --remote $1
|
||||
|
||||
# Generate the updated grammar for the submodule
|
||||
./update-language-bindings.sh
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Update tree-sitter submodules
|
||||
#
|
||||
# Usage: ./update-sumbodules.sh $tree-sitter-language
|
||||
|
||||
# Update submodule
|
||||
git submodule update --remote $1
|
||||
|
||||
# Recreate the language
|
||||
pushd enums
|
||||
cargo clean
|
||||
cargo run -- -lrust -o ../src/languages
|
||||
popd
|
||||
|
||||
# Format the code
|
||||
cargo fmt
|
Загрузка…
Ссылка в новой задаче