diff options
author | Mark Ferrell <major@homeonderanged.org> | 2012-03-19 15:02:30 -0500 |
---|---|---|
committer | Mark Ferrell <major@homeonderanged.org> | 2012-03-19 15:02:30 -0500 |
commit | 99d676a1bf792fcd091f36f357b65636bc1d4412 (patch) | |
tree | c3458d0e83adcae9fd1310a43213fb5dbf5c854f | |
parent | 39a5565e04264720a673e63f3ab38cd458a70a5b (diff) |
Improve logging within build-compile.
* Bad redirection was truncating compiling log
* Added ENV data to the start of the compile log to aid in debugging.
-rwxr-xr-x | bin/builder/build-compile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/builder/build-compile b/bin/builder/build-compile index ecd3e97..a078c19 100755 --- a/bin/builder/build-compile +++ b/bin/builder/build-compile @@ -37,8 +37,10 @@ import "${1}" if [ -f "${L}/compile.log" ]; then rm "${L}/compile.log" || exit 1 fi -touch "${L}/compile.log" +echo "== ENV ==" > "${L}/compile.log" +env >> "${L}/compile.log" +echo "=========" >> "${L}/compile.log" -(set -e;cd "${S}" && pkg_compile > "${L}/compile.log" 2>&1 && date --utc > ${L}/.compiled) +(set -e;cd "${S}" && pkg_compile >> "${L}/compile.log" 2>&1 && date --utc > ${L}/.compiled) # vim: filetype=sh |