/[smeserver]/builds_bin/build_all
ViewVC logotype

Diff of /builds_bin/build_all

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by gordonr, Fri Nov 18 06:43:11 2005 UTC Revision 1.11 by gordonr, Mon Feb 13 05:00:00 2006 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/bash
2    # Build all locally maintained packages from CVS
3    # Check whether anything is new and let us know if there is
4    
5  cd /mirrors/mitel/devel/repo/SRPMS  # Normally run as "buildrobot"
6    # Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver
7    
8  FAILED=""  PATH=/builds/bin:$PATH
9    export PATH
10    
11  for file in e-smith*  cd ~/work
12    
13    for package in $(cat modules)
14  do  do
15      if [ -f /builds/rpms/SRPMS/$file ]  
16        case $package in
17            SMEServer) continue ;;
18            builds_bin) continue ;;
19            cdrom.image) continue ;;
20            e-smith-qpsmtpd) continue ;;
21            e-smith-spamassassin) continue ;;
22    
23            grub)   echo "Not building $package"
24                    continue
25                    ;;
26    
27            *) ;;
28        esac
29    
30        echo -n "Checking $package "; date
31    
32        [ -d $package ] || mzget $package
33    
34        cd $package
35    
36        LOG=$package.log
37        mzclean >$LOG 2>&1
38      
39        SPEC=$(echo F/*.spec)       # XXX - FIXME - only one SPEC file
40    
41        if [ ! -f $SPEC ]
42      then      then
43          echo "Already built: $file"          echo "Sorry - can't find $SPEC"
44          continue          continue
45      fi      fi
46    
47      echo "Building: $file"      NVR=$(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}" --specfile $SPEC)
48      if rpmbuild --rebuild $file  
49        SRPM=/builds/rpms/SRPMS/$NVR.src.rpm
50    
51        if [ -f $SRPM ]
52        then
53            echo "$SRPM already exists"
54            continue
55        fi
56    
57        if mzbuild >>$LOG 2>&1
58      then      then
59          cp -p $file /builds/rpms/SRPMS          release_rpms *.rpm
60      else      else
61          echo "FAILED: $file"          echo "Build of $package failed - check $LOG"
         FAILED="$FAILED $file"  
62      fi      fi
 done  
63    
64  echo "Failed to build: $FAILED"      cd ~/work
65    done


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed