From: Michael Tremer Date: Sat, 25 Jul 2009 09:30:17 +0000 (+0200) Subject: Add some meta information to nighly builds. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=532ed0c5f345c821f3472e596285b60d1ad768a8;p=ipfire-3.x.git Add some meta information to nighly builds. --- diff --git a/tools/make-batch b/tools/make-batch index 09b60807b..82670467d 100644 --- a/tools/make-batch +++ b/tools/make-batch @@ -47,12 +47,14 @@ batch_attach() { ############################################################################### batch_run() { gettoolchain + local DURATION=$(date "+%s") $0 build &> $BATCHLOG + DURATION=$(( $(date "+%s") - ${DURATION} )) sleep 30 if [ -e "$FAILED" ]; then batch_mail "Build failed :(" else - puttarget + DURATION=${DURATION} puttarget fi } diff --git a/tools/make-include b/tools/make-include index c3530ca85..cc454bb0c 100644 --- a/tools/make-include +++ b/tools/make-include @@ -804,6 +804,14 @@ puttarget() { git_export; cp -l ${BASEDIR}/${SNAME}-${VERSION}.source.tar.gz ${DIR} git_diff >/dev/null && cp -l ${DIFF_NAME} ${DIR} cp -l ${BASEDIR}/${IMAGENAME}.* ${DIR} +cat < ${DIR}/.buildinfo +HOSTNAME=${HOSTNAME} +ARCH=${TARGET} +DATE=$(date "+%s") +DURATION=${DURATION} +RELEASE=${NAME}-${VERSION} +ISO=${IMAGENAME}.iso +EOF cd $BASEDIR && \ scp -2 -r ${HOSTNAME} ${IPFIRE_USER}@${URL_TARGET} || :