Message ID | 20230110173922.265055-8-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show |
Series | current maintainer trees (testing/semihosting/plugins) | expand |
On 1/10/23 18:39, Alex Bennée wrote: > From: Marc-André Lureau <marcandre.lureau@redhat.com> > > Let's try to reduce our Perl usage during config/build-time. > > Note: this patch might be dropped if "configure: remove > backwards-compatibility code" is merged earlier. It can be dropped now. Paolo > > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> > Tested-by: Thomas Huth <thuth@redhat.com> > Message-Id: <20230110132700.833690-4-marcandre.lureau@redhat.com> > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > --- > configure | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/configure b/configure > index 2281892657..9a944698b4 100755 > --- a/configure > +++ b/configure > @@ -2571,11 +2571,9 @@ else > if test -f meson-private/cmd_line.txt; then > # Adjust old command line options whose type was changed > # Avoids having to use "setup --wipe" when Meson is upgraded > - perl -i -ne ' > - s/^gettext = true$/gettext = auto/; > - s/^gettext = false$/gettext = disabled/; > - /^b_staticpic/ && next; > - print;' meson-private/cmd_line.txt > + sed -i.bak -e 's/^gettext = true$/gettext = auto/g' \ > + -e 's/^gettext = false$/gettext = disabled/g' \ > + -e '/^b_staticpic/d' meson-private/cmd_line.txt > fi > fi >
diff --git a/configure b/configure index 2281892657..9a944698b4 100755 --- a/configure +++ b/configure @@ -2571,11 +2571,9 @@ else if test -f meson-private/cmd_line.txt; then # Adjust old command line options whose type was changed # Avoids having to use "setup --wipe" when Meson is upgraded - perl -i -ne ' - s/^gettext = true$/gettext = auto/; - s/^gettext = false$/gettext = disabled/; - /^b_staticpic/ && next; - print;' meson-private/cmd_line.txt + sed -i.bak -e 's/^gettext = true$/gettext = auto/g' \ + -e 's/^gettext = false$/gettext = disabled/g' \ + -e '/^b_staticpic/d' meson-private/cmd_line.txt fi fi