1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-18 03:40:47 -08:00
emacs/admin/notes/tree-sitter/build-module/batch.sh
Yuan Fu 6acf95cbea
Fix admin/notes/tree-sitter/build-module/build.sh (bug#59789)
Besides the problem mentioned by Juri, which is fixed by removing

-cp tree-sitter-lang.in "tree-sitter-${lang}/src"
-cp emacs-module.h "tree-sitter-${lang}/src"

(we removed those files in an earlier commit, because they are not
used anymore.)

Now it also more parameterized and builds typescript and tsx
separately.

* admin/notes/tree-sitter/build-module/build.sh (topdir)
(repo, sourcedir, grammardir): New variables.
(Build): Make it parametric.
(Copy out): Use absolute path.

* admin/notes/tree-sitter/build-module/batch.sh (languages): Add tsx.
2022-12-06 16:11:35 -08:00

21 lines
236 B
Bash
Executable file

#!/bin/bash
languages=(
'c'
'cpp'
'css'
'c-sharp'
'go'
'html'
'javascript'
'json'
'python'
'rust'
'typescript'
'tsx'
)
for language in "${languages[@]}"
do
./build.sh $language
done