diff options
Diffstat (limited to 'admin/notes')
| -rwxr-xr-x | admin/notes/tree-sitter/build-module/batch.sh | 1 | ||||
| -rwxr-xr-x | admin/notes/tree-sitter/build-module/build.sh | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/admin/notes/tree-sitter/build-module/batch.sh b/admin/notes/tree-sitter/build-module/batch.sh index d45f37f4b64..6dce000caa6 100755 --- a/admin/notes/tree-sitter/build-module/batch.sh +++ b/admin/notes/tree-sitter/build-module/batch.sh | |||
| @@ -5,6 +5,7 @@ languages=( | |||
| 5 | 'cpp' | 5 | 'cpp' |
| 6 | 'css' | 6 | 'css' |
| 7 | 'c-sharp' | 7 | 'c-sharp' |
| 8 | 'dockerfile' | ||
| 8 | 'go' | 9 | 'go' |
| 9 | 'html' | 10 | 'html' |
| 10 | 'javascript' | 11 | 'javascript' |
diff --git a/admin/notes/tree-sitter/build-module/build.sh b/admin/notes/tree-sitter/build-module/build.sh index d562f1a7846..cc31e3f6f02 100755 --- a/admin/notes/tree-sitter/build-module/build.sh +++ b/admin/notes/tree-sitter/build-module/build.sh | |||
| @@ -14,11 +14,15 @@ echo "Building ${lang}" | |||
| 14 | 14 | ||
| 15 | ### Retrieve sources | 15 | ### Retrieve sources |
| 16 | 16 | ||
| 17 | namespace="tree-sitter" | ||
| 17 | repo="tree-sitter-${lang}" | 18 | repo="tree-sitter-${lang}" |
| 18 | sourcedir="tree-sitter-${lang}/src" | 19 | sourcedir="tree-sitter-${lang}/src" |
| 19 | grammardir="tree-sitter-${lang}" | 20 | grammardir="tree-sitter-${lang}" |
| 20 | 21 | ||
| 21 | case "${lang}" in | 22 | case "${lang}" in |
| 23 | "dockerfile") | ||
| 24 | namespace="camdencheek" | ||
| 25 | ;; | ||
| 22 | "typescript") | 26 | "typescript") |
| 23 | sourcedir="tree-sitter-typescript/typescript/src" | 27 | sourcedir="tree-sitter-typescript/typescript/src" |
| 24 | grammardir="tree-sitter-typescript/typescript" | 28 | grammardir="tree-sitter-typescript/typescript" |
| @@ -30,7 +34,7 @@ case "${lang}" in | |||
| 30 | ;; | 34 | ;; |
| 31 | esac | 35 | esac |
| 32 | 36 | ||
| 33 | git clone "https://github.com/tree-sitter/${repo}.git" \ | 37 | git clone "https://github.com/${namespace}/${repo}.git" \ |
| 34 | --depth 1 --quiet | 38 | --depth 1 --quiet |
| 35 | cp "${grammardir}"/grammar.js "${sourcedir}" | 39 | cp "${grammardir}"/grammar.js "${sourcedir}" |
| 36 | # We have to go into the source directory to compile, because some | 40 | # We have to go into the source directory to compile, because some |