On Sun, Jan 26, 2025 at 07:32:17PM +0100, Patrice Dumas wrote:
> >  @ifversion @atleast 10.1
> >  ... stuff that only Texinfo 10.1 and newer supports ...
> >  @end ifversion
> 
> It seems to me that it can be done with @ifset and -D on the
> command-line.
> 
> It could be
> @ifset version-atleast-10-1
>  ... stuff that only Texinfo 10.1 and newer supports ...
> @end ifset
> 
> Then the user running texi2any/makeinfo would have to know whether to
> add -D version-atleast-10-1 on the command-line by looking at the version
> of the program.

Great idea, the user could do a version check by running "texi2any --version"
and extracting the version number, and put in place any version conditions
they wanted.

  • Cross-ref... Pip Cet via Bug reports for the GNU Texinfo documentation system
    • Re: ... Gavin Smith
      • ... Pip Cet via Bug reports for the GNU Texinfo documentation system
        • ... Gavin Smith
      • ... Eli Zaretskii
        • ... Gavin Smith
          • ... Eli Zaretskii
        • ... Patrice Dumas
          • ... Gavin Smith
          • ... Patrice Dumas
    • Re: ... Patrice Dumas

Reply via email to