; * admin/notes/tree-sitter/build-module/build.sh: Minor name change.

This commit is contained in:
Yuan Fu 2022-12-13 16:24:38 -08:00
parent 1b0e282a7f
commit 91b8d9b7db
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -14,17 +14,17 @@ echo "Building ${lang}"
### Retrieve sources
namespace="tree-sitter"
org="tree-sitter"
repo="tree-sitter-${lang}"
sourcedir="tree-sitter-${lang}/src"
grammardir="tree-sitter-${lang}"
case "${lang}" in
"dockerfile")
namespace="camdencheek"
org="camdencheek"
;;
"cmake")
namespace="uyha"
org="uyha"
;;
"typescript")
sourcedir="tree-sitter-typescript/typescript/src"
@ -37,7 +37,7 @@ case "${lang}" in
;;
esac
git clone "https://github.com/${namespace}/${repo}.git" \
git clone "https://github.com/${org}/${repo}.git" \
--depth 1 --quiet
cp "${grammardir}"/grammar.js "${sourcedir}"
# We have to go into the source directory to compile, because some