[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/26] configure: replace Perl usage with sed
From: |
Alex Bennée |
Subject: |
[PATCH 07/26] configure: replace Perl usage with sed |
Date: |
Tue, 10 Jan 2023 17:39:03 +0000 |
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>
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
--
2.34.1
- Re: [PATCH 02/26] gitlab: add FF_SCRIPT_SECTIONS for timings, (continued)
- [PATCH 01/26] scripts/ci: update gitlab-runner playbook to use latest runner, Alex Bennée, 2023/01/10
- [PATCH 03/26] gitlab: just use plain --cc=clang for custom runner build, Alex Bennée, 2023/01/10
- [PATCH 04/26] tests/unit: drop hacky race avoidance in test-io-channel-command, Alex Bennée, 2023/01/10
- [PATCH 05/26] build-sys: fix crlf-ending C code, Alex Bennée, 2023/01/10
- [PATCH 06/26] .gitlab-ci.d/windows: do not disable opengl, Alex Bennée, 2023/01/10
- [PATCH 08/26] meson: replace Perl usage with Python, Alex Bennée, 2023/01/10
- [PATCH 07/26] configure: replace Perl usage with sed,
Alex Bennée <=
- [PATCH 17/26] tests/tcg: add memory-sve test for aarch64, Alex Bennée, 2023/01/10
- [PATCH 15/26] docs: add a proper feature overview in "About QEMU", Alex Bennée, 2023/01/10
- [PATCH 11/26] lcitool: drop perl from QEMU project/dependencies, Alex Bennée, 2023/01/10
- [PATCH 20/26] thread: de-const qemu_spin_destroy, Alex Bennée, 2023/01/10
- [PATCH 09/26] docs: drop texinfo options, Alex Bennée, 2023/01/10
- [PATCH 19/26] util/qht: add missing atomic_set(hashes[i]), Alex Bennée, 2023/01/10
- [PATCH 10/26] Update lcitool and fedora to 37, Alex Bennée, 2023/01/10