[oe-commits] [meta-openembedded] 21/32: net-snmp: Simplify sed expressions
git at git.openembedded.org
git at git.openembedded.org
Mon Nov 26 17:39:04 UTC 2018
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit af46a5ef3ac0182f7598994f83804f386668c510
Author: douglas.royds <douglas.royds at taitradio.com>
AuthorDate: Wed Nov 21 13:52:20 2018 +1300
net-snmp: Simplify sed expressions
Readability.
The existing patterns allowed each pattern to be matched multiple times (with no
intevening spaces), but the "g" modifier achieves this anyway.
Signed-off-by: Douglas Royds <douglas.royds at taitradio.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
index 2a0d88a..7794f38 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
@@ -119,12 +119,12 @@ do_install_append() {
sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=. at g" \
-i ${D}${bindir}/net-snmp-create-v3-user
sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=. at g' \
- -e 's@\([^ ]*-fdebug-prefix-map=[^ "]*\)\1*@@g' \
- -e 's@\([^ ]*--sysroot=[^ "]*\)\1*@@g' \
- -e 's@\([^ ]*--with-libtool-sysroot=[^ "]*\)\1*@@g' \
- -e 's@\([^ ]*--with-install-prefix=[^ "]*\)\1*@@g' \
- -e 's@\([^ ]*PKG_CONFIG_PATH=[^ "]*\)\1*@@g' \
- -e 's@\([^ ]*PKG_CONFIG_LIBDIR=[^ "]*\)\1*@@g' \
+ -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
+ -e 's@[^ ]*--sysroot=[^ "]*@@g' \
+ -e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \
+ -e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \
+ -e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \
+ -e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
-i ${D}${bindir}/net-snmp-config
if [ "${HAS_PERL}" = "1" ]; then
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list