On Wed, Mar 13, 2002 at 01:17:06PM +0200, Samuli Suonpaa wrote: > Chris Halls <[EMAIL PROTECTED]> writes: > > If you get the same problem again, please include the part of the log where > > it tries to build the bmp files. > > Hate to sound stupid on a public mailing list, but what the hell... > Log? What log? Where? > > Does the build system automatically make a log somewhere or am I > supposed to direct stdout and stderr somewhere?
I'm sorry. I was assuming you had made a logfile yourself :-) Still, help is at hand... I made an autobuilding script, which Jan has uploaded to the website. I'll attach it here since it's pretty small. Just edit the options at the top, change to an empty directory and run. You'll probably want to avoid downloading the large openoffice .orig.tar.gz file again, so its best to copy it into the directory first (or make a hard link to it). Hope that helps, Chris -- Chris Halls | Frankfurt, Germany Yahoo:hagga12000 ICQ:36940860 MSN:[EMAIL PROTECTED]
#!/bin/sh set -e # Autodownloader and builder for OpenOffice # Chris Halls <[EMAIL PROTECTED]> # 8 March 2002 # To use, just change to an empty directory and run this program. # The latest files will be downloaded, the package built and email # sent when the build has stopped. # Patch files # If you want changes that you have made to be preserved, # create a patch file in this directory that has a .patch suffix. # These patches will be applied before the build is started. A # copy of the original file is saved in <file>.orig. #================================ # Openoffice upstream name and version name=openoffice version=0.641c # The version suffix for debian diff file patchver=1 # If SLEEPCTL is set, and you are running apmsleep, it will be disabled during # the build so your machine does not go to sleep. SLEEPCTL=/usr/bin/sleepctl # The email address to send a report to. Comment out if unwanted. SENDTO=$EMAIL # The directory that contains the openoffice files WGETDIR="http://bourbaki.math.uni-kiel.de/~jpalic/debian/openoffice/" #================================ tardir=$name-$version builddir=$name-$version tarorig=${name}_$version.orig.tar.gz difffile=${name}_$version-$patchver.diff.gz logstamp=`date +%y%m%d-%k%M` logfile="buildlog.$logstamp" set -o xtrace wget -l 1 -nH -nd -A "openoffice*" -r -N -nr $WGETDIR [ ! -f $tarorig ] && echo "Can't find tar file:$tarorig" && exit 1 [ ! -f $difffile ] && echo "Can't find diff file:$difffile" && exit 1 rm -rf $builddir tar -zxf $tarorig gunzip -c < $difffile | patch -p0 for I in *.patch ;do [ "$I" = "*.patch" ] && break echo Applying $I patch -p0 -z.orig < $I done chmod 755 $builddir/debian/rules # Prevent from sleeping if necessary [ -x "$SLEEPCTL" ] && sleepctl off set +e # Do the build ( cd $builddir nice -40 dpkg-buildpackage -B -uc -us -rfakeroot 2>&1 || touch BUILD_FAILURE ) | tee $logfile # Mail report? if [ -n "$SENDTO" ]; then if [ ! -f $builddir/BUILD_FAILURE ] ;then tail -100 $logfile | mail -s "Openoffice build $logstamp SUCCESS!" $SENDTO else tail -500 $logfile | mail -s "Openoffice build failure $logstamp" $SENDTO fi fi [ -x "$SLEEPCTL" ] && sleepctl on