lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 08d11422: Refine commit 93e400db7


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 08d11422: Refine commit 93e400db7
Date: Tue, 22 Nov 2022 12:17:16 -0500 (EST)

branch: master
commit 08d114220b3fa0ce55c341eaf7bd3488c0fe8074
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Refine commit 93e400db7
    
    See:
      https://lists.nongnu.org/archive/html/lmi/2022-11/msg00000.html
---
 install_xml_libraries.sh | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/install_xml_libraries.sh b/install_xml_libraries.sh
index fa377b63..3118e655 100755
--- a/install_xml_libraries.sh
+++ b/install_xml_libraries.sh
@@ -248,10 +248,15 @@ for lib in libxml2 libxslt; do
     esac
 
     if [ -n "$err" ]; then
-        echo '* Configuring failed, contents of config.log follows: *'
-        echo '-------------------------------------------------------'
+        error_marker='*''*''*'
+        # Use ${error_marker} instead of a literal triple asterisk,
+        # because this script uses 'set -vx' and routinely echoing
+        # a line that contains the error marker's value makes it
+        # harder to find actual errors that use that marker.
+        echo "${error_marker} Configuring failed; 'config.log' contains:"
+        echo "-------------------------------------------------------"
         cat config.log
-        echo '-------------------------------------------------------'
+        echo "-------------------------------------------------------"
         exit $err
     fi
     $MAKE install
@@ -303,10 +308,11 @@ for lib in xmlwrapp; do
     esac
 
     if [ -n "$err" ]; then
-        echo '* Configuring failed, contents of config.log follows: *'
-        echo '-------------------------------------------------------'
+        error_marker='*''*''*'
+        echo "${error_marker} Configuring failed; 'config.log' contains:"
+        echo "-------------------------------------------------------"
         cat config.log
-        echo '-------------------------------------------------------'
+        echo "-------------------------------------------------------"
         exit $err
     fi
     $MAKE install



reply via email to

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