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@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
douglas.royds
2018-11-21 13:52:20 +13:00
committed by Khem Raj
parent dcdb5fa302
commit af46a5ef3a
@@ -119,12 +119,12 @@ do_install_append() {
sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \ sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
-i ${D}${bindir}/net-snmp-create-v3-user -i ${D}${bindir}/net-snmp-create-v3-user
sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \ sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \
-e 's@\([^ ]*-fdebug-prefix-map=[^ "]*\)\1*@@g' \ -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
-e 's@\([^ ]*--sysroot=[^ "]*\)\1*@@g' \ -e 's@[^ ]*--sysroot=[^ "]*@@g' \
-e 's@\([^ ]*--with-libtool-sysroot=[^ "]*\)\1*@@g' \ -e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \
-e 's@\([^ ]*--with-install-prefix=[^ "]*\)\1*@@g' \ -e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \
-e 's@\([^ ]*PKG_CONFIG_PATH=[^ "]*\)\1*@@g' \ -e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \
-e 's@\([^ ]*PKG_CONFIG_LIBDIR=[^ "]*\)\1*@@g' \ -e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
-i ${D}${bindir}/net-snmp-config -i ${D}${bindir}/net-snmp-config
if [ "${HAS_PERL}" = "1" ]; then if [ "${HAS_PERL}" = "1" ]; then