diff --git a/tools/ChangeLog b/tools/ChangeLog index 89c7bc7e..09c16d2d 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Sep 2008; Andrew Gaffney catalyst-auto: + Move pre_build() call after creation of dirs + 28 Sep 2008; Andrew Gaffney catalyst-auto: Add pre_build() and post_build() support diff --git a/tools/catalyst-auto b/tools/catalyst-auto index 27ec514c..1028d6b8 100755 --- a/tools/catalyst-auto +++ b/tools/catalyst-auto @@ -94,11 +94,6 @@ source ${config_file} TMPDIR=/tmp/catalyst-auto.${PID} DATESTAMP=$(date +%Y%m%d) -if ! run_cmd "pre_build" "${TMPDIR}/log/pre_build.log"; then - send_email "Catalyst build error - pre_build" "$(echo -e "Your pre_build function sucks\n\n"; tail -n 200 "${TMPDIR}/log/pre_build.log")" - exit 1 -fi - if [ ${verbose} = 1 ]; then echo "TMPDIR = ${TMPDIR}" echo "DATESTAMP = ${DATESTAMP}" @@ -119,6 +114,11 @@ for i in ${TMPDIR} ${TMPDIR}/specs ${TMPDIR}/kconfig ${TMPDIR}/log; do fi done +if ! run_cmd "pre_build" "${TMPDIR}/log/pre_build.log"; then + send_email "Catalyst build error - pre_build" "$(echo -e "Your pre_build function sucks\n\n"; tail -n 200 "${TMPDIR}/log/pre_build.log")" + exit 1 +fi + cd ${SPECS_DIR} for i in ${SPECS}; do