lmi-commits
[Top][All Lists]
Advanced

[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;
         ;;



reply via email to

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