java: out-of-tree build, don't build static library
[libguestfs.git] / contrib / autobuild / autobuild.sh
index 6ec1bfc..69956f8 100755 (executable)
@@ -14,7 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 # This script is used to download and test the latest tarball on
 # Debian and other platforms.  It runs from a cron job and sends email
@@ -60,16 +60,25 @@ cd "$directory"
 # This function is called if any step fails.
 failed ()
 {
-    mutt -s "$prefix libguestfs $version FAILED $1" "$mailto" -a ../build.log <<EOF
-Autobuild failed.  See the attached log file.
+    tail -100 ../build.log > ../build.log.tail
+    mutt -s "$prefix libguestfs $version FAILED $1" "$mailto" -a ../build.log.tail <<EOF
+Autobuild failed.  The last 100 lines of the build log are
+attached.
+
+For the full log see the build machine, in
+$tmpdir/build.log
 EOF
+    rm ../build.log.tail
 }
 
 # This function is called if the build is successful.
 ok ()
 {
-    mutt -s "$prefix libguestfs $version ok" "$mailto" -a ../build.log <<EOF
-Autobuild was successful.  The full log file is attached.
+    mutt -s "$prefix libguestfs $version ok" "$mailto" <<EOF
+Autobuild was successful.
+
+For the full log see the build machine, in
+$tmpdir/build.log
 EOF
 }