qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: marcandre.lureau@redhat.com
To: qemu-devel@nongnu.org
Cc: "Eric Farman" <farman@linux.ibm.com>,
	"Halil Pasic" <pasic@linux.ibm.com>,
	pbonzini@redhat.com,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	qemu-s390x@nongnu.org, "David Hildenbrand" <david@redhat.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Thomas Huth" <thuth@redhat.com>,
	"Beraldo Leal" <bleal@redhat.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Cleber Rosa" <crosa@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Ed Maste" <emaste@freebsd.org>,
	kraxel@redhat.com, "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Michael Roth" <michael.roth@amd.com>,
	"Li-Wen Hsu" <lwhsu@freebsd.org>, "John Snow" <jsnow@redhat.com>,
	"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
	"Cornelia Huck" <cohuck@redhat.com>
Subject: [PATCH v3 3/8] configure: replace Perl usage with sed
Date: Tue, 10 Jan 2023 12:02:41 +0400	[thread overview]
Message-ID: <20230110080246.536056-4-marcandre.lureau@redhat.com> (raw)
In-Reply-To: <20230110080246.536056-1-marcandre.lureau@redhat.com>

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.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 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
 
-- 
2.39.0



  parent reply	other threads:[~2023-01-10  8:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-10  8:02 [PATCH v3 0/8] Fix win32/msys2 shader compilation & update lcitool deps marcandre.lureau
2023-01-10  8:02 ` [PATCH v3 1/8] build-sys: fix crlf-ending C code marcandre.lureau
2023-01-10  8:33   ` Thomas Huth
2023-01-10  9:53     ` Marc-André Lureau
2023-01-10  8:02 ` [PATCH v3 2/8] .gitlab-ci.d/windows: do not disable opengl marcandre.lureau
2023-01-10  8:02 ` marcandre.lureau [this message]
2023-01-10  8:50   ` [PATCH v3 3/8] configure: replace Perl usage with sed Thomas Huth
2023-01-10  8:02 ` [PATCH v3 4/8] meson: replace Perl usage with Python marcandre.lureau
2023-01-10  8:02 ` [PATCH v3 5/8] docs: drop texinfo options marcandre.lureau
2023-01-10  8:02 ` [PATCH v3 6/8] Update lcitool and fedora to 37 marcandre.lureau
2023-01-10  8:09   ` Thomas Huth
2023-01-10  8:02 ` [PATCH v3 7/8] lcitool: drop perl from QEMU project/dependencies marcandre.lureau
2023-01-10  8:02 ` [PATCH v3 8/8] lcitool: drop texinfo " marcandre.lureau
2023-01-10 10:41 ` [PATCH v3 0/8] Fix win32/msys2 shader compilation & update lcitool deps Alex Bennée
2023-01-10 10:44   ` Marc-André Lureau
2023-01-10 12:58     ` Alex Bennée
2023-01-10 10:45   ` Thomas Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230110080246.536056-4-marcandre.lureau@redhat.com \
    --to=marcandre.lureau@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=bleal@redhat.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=crosa@redhat.com \
    --cc=david@redhat.com \
    --cc=emaste@freebsd.org \
    --cc=farman@linux.ibm.com \
    --cc=jsnow@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=lwhsu@freebsd.org \
    --cc=michael.roth@amd.com \
    --cc=pasic@linux.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@redhat.com \
    --cc=wainersm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).