Subject: Re: bug#71562: treesit-install-language-grammar fails to install typescript

From: Eli Zaretskii <[email-masked]>
Date: Sun, 16 Jun 2024 08:16:03 +0300

> Date: Sat, 15 Jun 2024 22:30:25 +0300
> Cc: [email-masked], [email-masked]
> From: Dmitry Gutov <[email-masked]>
> 
> On 15/06/2024 09:31, Eli Zaretskii wrote:
> > We could look for directories names 'src' which have either parser.c
> > or parser.cc, and take it from there, instead of hard-coding the place
> > of the 'src' directory in the hierarchy.
> 
> In the present case we have two problems:
> 
> * https://github.com/tree-sitter/tree-sitter-typescript/ contains two 
> different files called parser.c in two different subdirectories (in 
> typescript/src and tsx/src).
> 
> * The repository for the 'tsx' grammar does not match the common scheme 
> - instead it's the same repository as for 'typescript'.

I'm saying that we should run the build commands in every subdirectory
called 'src' that has parser.c or parser.cc in it.  Each shared
library thus created should be installed.  The name of the library is
derived from the parent of the 'src' subdirectory.