From 46d164baab7e13fd45ebbf37840c2e2eb441cea9 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sun, 28 Sep 2008 04:39:45 +0000 Subject: [PATCH] Move pre_build() call after creation of dirs svn path=/trunk/; revision=576 --- tools/ChangeLog | 3 +++ tools/catalyst-auto | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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