dovecot-2.0: dovecot.m4: Don't use grep -e, it's not standard.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 16 18:39:44 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/b8c4316a5d40
changeset: 11844:b8c4316a5d40
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 16 16:38:39 2010 +0100
description:
dovecot.m4: Don't use grep -e, it's not standard.

diffstat:

 dovecot.m4 |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r db22952d406a -r b8c4316a5d40 dovecot.m4
--- a/dovecot.m4	Fri Jul 16 15:52:04 2010 +0100
+++ b/dovecot.m4	Fri Jul 16 16:38:39 2010 +0100
@@ -6,7 +6,7 @@
 # unlimited permission to copy and/or distribute it, with or without
 # modifications, as long as this notice is preserved.
 
-# serial 1
+# serial 2
 
 AC_DEFUN([DC_PLUGIN_DEPS],[
 	_plugin_deps=yes
@@ -47,11 +47,8 @@
 		AC_MSG_ERROR([dovecot-config not found])
 	fi
 
-	eval `grep \
-		-e ^dovecot_[[a-z]]*= \
-		-e ^DOVECOT_[[A-Z_]]*= \
-		-e ^LIBDOVECOT[[A-Z_]]*= \
-		"$dovecotdir"/dovecot-config`
+	eval `grep -i '^dovecot_[[a-z]]*=' "$dovecotdir"/dovecot-config`
+	eval `grep '^LIBDOVECOT[[A-Z_]]*=' "$dovecotdir"/dovecot-config`
 	AX_SUBST_L([dovecot_moduledir], [dovecot_pkgincludedir], [dovecot_pkglibexecdir], [dovecot_pkglibdir], [dovecot_docdir])
 	AX_SUBST_L([DOVECOT_CFLAGS], [DOVECOT_LIBS], [DOVECOT_SSL_LIBS])
 	AX_SUBST_L([LIBDOVECOT], [LIBDOVECOT_LOGIN], [LIBDOVECOT_SQL], [LIBDOVECOT_LDA], [LIBDOVECOT_STORAGE])


More information about the dovecot-cvs mailing list