From 92c3194fc5757f380931fea67f630d02696afb2c Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Mon, 21 Jun 2010 22:52:10 +0200
Subject: Including build-job in the mail that is sent by the cgi.

---
 cgi/cron | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/cgi/cron b/cgi/cron
index 0bf4554..f8e7b24 100755
--- a/cgi/cron
+++ b/cgi/cron
@@ -118,6 +118,16 @@ then
 		    -e "s#SERVER#${_SERVER}#" \
 		"${_TEMPLATES}"/mail.txt > "${_DESTDIR}"/"${_BUILD}"/mail
 
+cat >> "${_DESTDIR}"/"${_BUILD}"/mail << EOF
+
+---
+
+Here's a list of all build-options that were used to build your image:
+
+EOF
+
+		cat "${_DESTDIR}"/"${_BUILD}"/build >> "${_DESTDIR}"/"${_BUILD}"/mail
+
 		# Moving binary image
 		#if ls "${_TEMPDIR}"/"${_BUILD}"/binary*.* > /dev/null 2>&1
 		if Find_files ${_TEMPDIR}/${_BUILD}/binary*.*
-- 
cgit v1.0