Re: [PATCH v2 1/3] Makefile: extract script to generate clar declarations
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Oct 15, 2024, 19:24 UTC
- Message-ID
- <Zw7BX0BEzC07DRby@nand.local>
- In-Reply-To
- <7a619677c7af6ba8213a36208e20ab75c4318e38.1728985514.git.ps@pks.im>
On Tue, Oct 15, 2024 at 11:46:11AM +0200, Patrick Steinhardt wrote:
Show 5 quoted lines
> +for suite in "$@" > +do > + sed -ne "s/^\(void test_$suite__[a-zA-Z_0-9][a-zA-Z_0-9]*(void)$\)/extern \1;/p" "$suite" || > + exit 1 > +done >"$OUTPUT"
Much cleaner, thanks.
> 2.47.0.72.gef8ce8f3d4.dirty
Thanks, Taylor