]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Add some meta information to nighly builds.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Jul 2009 09:30:17 +0000 (11:30 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Jul 2009 09:30:17 +0000 (11:30 +0200)
tools/make-batch
tools/make-include

index 09b60807b6122d6edee644070875a5696ad7094d..82670467df01ae0fd6db2a14e7f830844b44516f 100644 (file)
@@ -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
 }
 
index c3530ca85a0a391abd7a9ff140346b25269bf678..cc454bb0ca172387df7346b9679ecc2481aa4292 100644 (file)
@@ -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 <<EOF > ${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} || :