diff mbox

move backtrace marker to CT_WORK_DIR

Message ID 20121015094615.GA18673@sig21.net
State Accepted
Commit 39ec9e913d79
Headers show

Commit Message

Johannes Stezenbach Oct. 15, 2012, 9:46 a.m. UTC
Avoid error when commands in scripts/crosstool-NG.sh fail
before CT_BUILD_DIR is set.

Signed-off-by: Johannes Stezenbach <js@sig21.net>


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

Comments

Yann E. MORIN Oct. 17, 2012, 8:29 p.m. UTC | #1
Johannes, All,

Your patch:
    scripts: move backtrace marker to CT_WORK_DIR

has been applied as #39ec9e913d79. Thank you!

Regards,
Yann E. MORIN.



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

Patch

diff -r 43ace4bb005e scripts/functions
--- a/scripts/functions	Wed Sep 26 16:37:31 2012 +0200
+++ b/scripts/functions	Mon Oct 15 11:37:22 2012 +0200
@@ -11,8 +11,8 @@ 
 
     # To avoid printing the backtace for each sub-shell
     # up to the top-level, just remember we've dumped it
-    if [ ! -f "${CT_BUILD_DIR}/backtrace" ]; then
-        touch "${CT_BUILD_DIR}/backtrace"
+    if [ ! -f "${CT_WORK_DIR}/backtrace" ]; then
+        touch "${CT_WORK_DIR}/backtrace"
 
         # Print steps backtrace
         step_depth=${CT_STEP_COUNT}
@@ -50,7 +50,7 @@ 
 
         CT_DoLog ERROR ""
         CT_DoEnd ERROR
-        rm -f "${CT_BUILD_DIR}/backtrace"
+        rm -f "${CT_WORK_DIR}/backtrace"
     fi
     exit $ret
 }