mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 01:30:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user