lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] odd/multiarch 44ffabf 2/5: Complain, and do nothing


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/multiarch 44ffabf 2/5: Complain, and do nothing else, if host type is unrecognized
Date: Wed, 17 Apr 2019 22:46:20 -0400 (EDT)

branch: odd/multiarch
commit 44ffabf6db72572caeda94092a52e8cd111e836d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Complain, and do nothing else, if host type is unrecognized
---
 set_arch.sh | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/set_arch.sh b/set_arch.sh
index ec24876..decfcca 100755
--- a/set_arch.sh
+++ b/set_arch.sh
@@ -100,5 +100,17 @@ esac
 # export DO="PATH=$PATH WINEPATH=$WINEPATH $PERFORM"
 }
 
-foo
+case "$LMI_HOST" in
+    (i686-pc-cygwin)     foo ;;
+    (x86_64-pc-cygwin)   foo ;;
+    (i686-w64-mingw32)   foo ;;
+    (x86_64-w64-mingw32) foo ;;
+    (*)
+        # This script is to be sourced, so it can't use a builtin
+        # command like 'print' here. Similarly, 'exit' would have
+        # a surprising effect.
+        echo "Unrecognized host type. Expect surprises."
+        ;;
+esac
+
 unset -f foo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]