[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/multiarch 068f52e 06/10: Improve documentation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/multiarch 068f52e 06/10: Improve documentation |
Date: |
Wed, 15 May 2019 17:59:56 -0400 (EDT) |
branch: odd/multiarch
commit 068f52e24f503cd69cbbee923972d0dbe825c996
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve documentation
---
set_arch.sh | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/set_arch.sh b/set_arch.sh
index ac25d7d..156b04c 100755
--- a/set_arch.sh
+++ b/set_arch.sh
@@ -141,12 +141,13 @@ case "$lmi_build_type" in
esac
}
+# This script is to be sourced, so it can't use a builtin command like
+# 'printf' here. Similarly, 'exit' would have a surprising effect.
+# Therefore, these precondition checks use 'echo' and 'return'.
+
case "$LMI_COMPILER" in
(gcc) ;;
(*)
- # 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 "Changed nothing because compiler is untested."
return 2;
;;
@@ -156,9 +157,6 @@ case "$LMI_TRIPLET" in
(i686-w64-mingw32) ;;
(x86_64-w64-mingw32) ;;
(*)
- # 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 "Changed nothing because host triplet is untested."
return 3;
;;
- [lmi-commits] [lmi] odd/multiarch updated (992aef4 -> da7b85f), Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch a0da26f 09/10: Avert shellcheck SC2140 warning, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch da7b85f 10/10: Rename set_arch.sh -> set_toolchain.sh, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch 4608d81 03/10: Remove obsolete commentary, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch 068f52e 06/10: Improve documentation,
Greg Chicares <=
- [lmi-commits] [lmi] odd/multiarch 48c0186 08/10: Rephrase for clarity, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch fd0b947 07/10: Improve diagnostics, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch e95d62e 02/10: Improve documentation, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch 98e00a5 05/10: Explain why one variable is unset while another is exported, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch cfc2bad 01/10: Prefer xz to bzip2, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch adf0725 04/10: Validate $LMI_COMPILER as well as $LMI_TRIPLET, Greg Chicares, 2019/05/15