[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#932957: Please migrate Release Notes to reStructuredText



Hi,

James Addison <jay@jp-hosting.net> wrote (Mon, 29 May 2023 00:18:36 +0100):
> [[Holger Wansing wrote:]]
> > Yes, filtering the content for the different architectures does not work yet.
> 
> Ah, and I said I would help with that :)
> 
> Although I don't yet know exactly how it's going to interact with the build
> process, I _think_ that a feature we could use for this is the 'only'
> directive:
> 
>   https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-only
> 
> Although this could benefit from more thought, initially I suggest we adopt a
> tag format something like 'arch-{debarch}' to handle this (so the conditional
> clause here would be placed within a '.. only:: arch-i386' block.
> 
> >From there, we could pass the corresponding tag on the commandline using the
> '-t' option, I guess in the Makefile:
> 
>   https://salsa.debian.org/holgerw/release-notes/-/blob/a2ba839790573915a80db75405abf8ef9212ac8e/Makefile#L103

I have implemented such things now in
https://salsa.debian.org/holgerw/release-notes/-/commit/0304c87400432e1905d1bb04d39468a632876978
as a first step for arch-depending filtering.

Works so far, if the wanted arch is set in the Makefile (line 175) via the -t option.

Thanks for your help on this!

Now we just need an infrastructure, to loop over all architectures for build targets...


Holger



-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076


Reply to: