]> diplodocus.org Git - nmh/commitdiff
Commit 9c663383ab54e0290781ac1c25d790ce03160e08 introduced
authorDavid Levine <levinedl@acm.org>
Mon, 9 Dec 2013 05:17:50 +0000 (23:17 -0600)
committerDavid Levine <levinedl@acm.org>
Mon, 9 Dec 2013 05:17:50 +0000 (23:17 -0600)
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

index 2aa196e..cb2265c 100755 (executable)
@@ -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