From: Taylor Blau Date: Tue, 15 Oct 2024 19:24:15 GMT Subject: Re: [PATCH v2 1/3] Makefile: extract script to generate clar declarations Message-ID: In-Reply-To: <7a619677c7af6ba8213a36208e20ab75c4318e38.1728985514.git.ps@pks.im> On Tue, Oct 15, 2024 at 11:46:11AM +0200, Patrick Steinhardt wrote: > +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