This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Change log behaviour


# HG changeset patch
# User Trevor Woerner <twoerner@gmail.com>
# Date 1299301856 18000
# Node ID 3beab6987d73cf9c011064ebb5866c75b7fd4509
# Parent  cd7bcbbd5cc9f2d3fafe5ac38fa15d6db1c31d14
Change log behaviour.

Generate the (uncompressed) log file in the location where the build
is being performed. Once the build is done, copy the log to the
install location and, optionally, compress it (at the install location)
if configured to do so while leaving the log in the build location
uncompressed.

diff -r cd7bcbbd5cc9 -r 3beab6987d73 scripts/crosstool-NG.sh.in
--- a/scripts/crosstool-NG.sh.in	Thu Mar 03 23:29:07 2011 +0100
+++ b/scripts/crosstool-NG.sh.in	Sat Mar 05 00:10:56 2011 -0500
@@ -274,10 +274,7 @@
 # we can log there
 exec >/dev/null
 case "${CT_LOG_TO_FILE}" in
-    y)  CT_LOG_FILE="${CT_PREFIX_DIR}/build.log"
-        cat "${tmp_log_file}" >>"${CT_LOG_FILE}"
-        rm -f "${tmp_log_file}"
-        exec >>"${CT_LOG_FILE}"
+    y)  exec >>"${tmp_log_file}"
         ;;
     *)  rm -f "${tmp_log_file}"
         ;;
@@ -624,7 +621,8 @@
 CT_DoLog INFO "Finishing installation (may take a few seconds)..."
 exec >/dev/null 2>&1
 
-[ "${CT_LOG_FILE_COMPRESS}" = y ] && bzip2 -9 "${CT_LOG_FILE}"
+cp "${tmp_log_file}" "${CT_PREFIX_DIR}/build.log"
+[ "${CT_LOG_FILE_COMPRESS}" = y ] && bzip2 -9 "${CT_PREFIX_DIR}/build.log"
 [ "${CT_INSTALL_DIR_RO}" = "y"  ] && chmod -R a-w "${CT_INSTALL_DIR}"
 [ "${CT_TEST_SUITE}" = "y" ] && chmod -R u+w "${CT_TEST_SUITE_DIR}"
 

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]