/[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.3 by gordonr, Fri Jan 27 01:52:02 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=""  cd ~/work
9    
10  for file in e-smith*  for package in $(cat modules)
11  do  do
12      if [ -f /builds/rpms/SRPMS/$file ]      case $package in
13      then          SMEServer*) ;;
14          echo "Already built: $file"  
15          continue          e-smith*) ;;
16      fi  
17            smeserver*) ;;
18      echo "Building: $file"  
19      if rpmbuild --rebuild $file  
20      then          *) echo "Skipping $package"
21          cp -p $file /builds/rpms/SRPMS             continue
22      else             ;;
23          echo "FAILED: $file"      esac
24          FAILED="$FAILED $file"  
25      fi      build_it $package
26  done  done
27    
28  echo "Failed to build: $FAILED"  build_it()
29    {
30        package=$1
31    
32        [ -d $package ] || mzget $package
33    
34        (
35            cd $package
36            mzsync
37            mzbuild
38    
39            /builds/bin/release_rpms *.rpm
40        )
41    }


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