Move pre_build() call after creation of dirs

svn path=/trunk/; revision=576
This commit is contained in:
Andrew Gaffney 2008-09-28 04:39:45 +00:00
parent 4333ff11e4
commit 46d164baab
2 changed files with 8 additions and 5 deletions

View file

@ -2,6 +2,9 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id$
28 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
Move pre_build() call after creation of dirs
28 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
Add pre_build() and post_build() support

View file

@ -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