/[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.2 by gordonr, Fri Jan 27 01:44:33 2006 UTC Revision 1.10 by gordonr, Mon Feb 13 04:20:40 2006 UTC
# Line 5  Line 5 
5  # Normally run as "buildrobot"  # Normally run as "buildrobot"
6  # Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver  # Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver
7    
8    PATH=/builds/bin:$PATH
9    export PATH
10    
11  cd ~/work  cd ~/work
12    
13  for package in $(cat modules)  for package in $(cat modules)
14  do  do
15    
16      case $package in      case $package in
17          SMEServer*) ;;          SMEServer) continue ;;
18            builds_bin) continue ;;
19            cdrom.image) continue ;;
20            e-smith-qpsmtpd) continue ;;
21            e-smith-spamassassin) continue ;;
22    
23          e-smith*) ;;          *) ;;
24        esac
25    
26          smeserver*) ;;      echo -n "Checking $package "; date
27    
28        [ -d $package ] || mzget $package
29    
30          *) echo "Skipping $package"      cd $package
            continue  
            ;;  
     esac  
31    
32      [ -d $package ] || mzget $package      LOG=$package.log
33        mzclean >$LOG 2>&1
34      
35        SPEC=$(echo F/*.spec)       # XXX - FIXME - only one SPEC file
36    
37        if [ ! -f $SPEC ]
38        then
39            echo "Sorry - can't find $SPEC"
40            continue
41        fi
42    
43        NVR=$(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}" --specfile $SPEC)
44    
45        SRPM=/builds/rpms/SRPMS/$NVR.src.rpm
46    
47        if [ -f $SRPM ]
48        then
49            echo "$SRPM already exists"
50            continue
51        fi
52    
53        if mzbuild >>$LOG 2>&1
54        then
55            release_rpms *.rpm
56        else
57            echo "Build of $package failed - check $LOG"
58        fi
59    
60      (      cd ~/work
         cd $package  
         mzsync  
         mzbuild  
     )  
61  done  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