[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
- [lmi-commits] [lmi] odd/multiarch updated (cdfac5b -> 0f63381), Greg Chicares, 2019/04/17
- [lmi-commits] [lmi] odd/multiarch 44ffabf 2/5: Complain, and do nothing else, if host type is unrecognized,
Greg Chicares <=
- [lmi-commits] [lmi] odd/multiarch 3006a3b 3/5: Prefer 'printf' to 'print' in shell scripts, Greg Chicares, 2019/04/17
- [lmi-commits] [lmi] odd/multiarch 0f63381 5/5: Hesitate to use 'command -v', Greg Chicares, 2019/04/17
- [lmi-commits] [lmi] odd/multiarch 392a189 1/5: Import several changes from trunk, Greg Chicares, 2019/04/17
- [lmi-commits] [lmi] odd/multiarch f8adc38 4/5: Simplify documentation of alternatives, Greg Chicares, 2019/04/17