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 authored and Khem Raj committed 2018-11-26 09:38:14 -08:00
1 parent dcdb5fa302
commit af46a5ef3a
1 file changed
+6 -6
@@ -119,12 +119,12 @@ do_install_append() {
sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
-i ${D}${bindir}/net-snmp-create-v3-user
sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@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