From 29114cb84aa1a6446ab62f79f7c5dbae78516a07 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 8 Dec 2013 23:17:50 -0600 Subject: [PATCH] Commit 9c663383ab54e0290781ac1c25d790ce03160e08 introduced a backward incompatibility to build_nmh. Refuse to support -y if the current nmh installation has an mhparam that doesn't support the sasl and tls components. --- docs/contrib/build_nmh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index 2aa196ec..cb2265cb 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -145,13 +145,18 @@ if install-mh -check >/dev/null 2>&1; then fi if test -x "$mhbin/mhparam"; then - case `$mhbin/mhparam sasl` in - *sasl*) config_sasl=y ;; - esac - - case `$mhbin/mhparam tls` in - *tls*) config_tls=y ;; - esac + if mhparam sasl >/dev/null; then + case `$mhbin/mhparam sasl` in + *sasl*) config_sasl=y ;; + esac + + case `$mhbin/mhparam tls` in + *tls*) config_tls=y ;; + esac + else + echo "$0: -y not supported with currently installed nmh" + exit 1 + fi fi fi -- 2.56.0