[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 3/8] configure: replace Perl usage with sed
From: |
marcandre . lureau |
Subject: |
[PATCH v3 3/8] configure: replace Perl usage with sed |
Date: |
Tue, 10 Jan 2023 12:02:41 +0400 |
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
- [PATCH v3 0/8] Fix win32/msys2 shader compilation & update lcitool deps, marcandre . lureau, 2023/01/10
- [PATCH v3 1/8] build-sys: fix crlf-ending C code, marcandre . lureau, 2023/01/10
- [PATCH v3 2/8] .gitlab-ci.d/windows: do not disable opengl, marcandre . lureau, 2023/01/10
- [PATCH v3 3/8] configure: replace Perl usage with sed,
marcandre . lureau <=
- [PATCH v3 4/8] meson: replace Perl usage with Python, marcandre . lureau, 2023/01/10
- [PATCH v3 5/8] docs: drop texinfo options, marcandre . lureau, 2023/01/10
- [PATCH v3 6/8] Update lcitool and fedora to 37, marcandre . lureau, 2023/01/10
- [PATCH v3 7/8] lcitool: drop perl from QEMU project/dependencies, marcandre . lureau, 2023/01/10
- [PATCH v3 8/8] lcitool: drop texinfo from QEMU project/dependencies, marcandre . lureau, 2023/01/10
- Re: [PATCH v3 0/8] Fix win32/msys2 shader compilation & update lcitool deps, Alex Bennée, 2023/01/10