done
# Dump logfile
- if [ -n "${LOGFILE}" ]; then
+ if [ -n "${LOGFILE}" ] && [ -e "${LOGFILE}" ]; then
echo # empty line
local line
prepareenv() {
# Are we running the right shell?
- if [ ! -z "${BASH}" ]; then
+ if [ -z "${BASH}" ]; then
exiterror "BASH environment variable is not set. You're probably running the wrong shell."
fi
${INTERACTIVE} && clear
prepareenv
- print_build_stage "Toolchain compilation"
+ print_build_stage "Toolchain compilation (${BUILD_ARCH})"
buildtoolchain
echo "`date -u '+%b %e %T'`: Create toolchain image for ${BUILD_ARCH}" | tee -a $LOGFILE
test -d $BASEDIR/cache/toolchains || mkdir -p $BASEDIR/cache/toolchains