#!/bin/bash # Build all locally maintained packages from CVS # Check whether anything is new and let us know if there is # Normally run as "buildrobot" # Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver PATH=/builds/bin:$PATH export PATH cd ~/work for package in $(cat modules) do case $package in SMEServer) continue ;; builds_bin) continue ;; cdrom.image) continue ;; e-smith-qpsmtpd) continue ;; e-smith-spamassassin) continue ;; isolinux) continue ;; grub) echo "Not building $package" continue ;; *) ;; esac echo -n "Checking $package "; date [ -d $package ] || mzget $package cd $package LOG=$package.log mzclean >$LOG 2>&1 SPEC=$(echo F/*.spec) # XXX - FIXME - only one SPEC file if [ ! -f $SPEC ] then echo "Sorry - can't find $SPEC" continue fi NVR=$(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}" --specfile $SPEC) SRPM=/builds/rpms/SRPMS/$NVR.src.rpm if [ -f $SRPM ] then echo "$SRPM already exists" continue fi if mzbuild >>$LOG 2>&1 then : else echo "Build of $package failed - check $LOG" fi cd ~/work done