/[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.5 by gordonr, Fri Jan 27 05:01:29 2006 UTC Revision 1.14 by slords, Sat Dec 2 17:19:10 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  umask 002
9    
10    PATH=~/bin:$PATH
11  export PATH  export PATH
12    
13  cd ~/work  check_package()
14    {
15        for NVR in $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" --specfile $SPEC)
16        do
17            SRPM=/builds/rpms/SRPMS/$NVR.src.rpm
18            if [ -f $SRPM ]
19            then
20                echo "$SRPM already exists"
21                return
22            fi
23        done
24    
 for package in $(cat modules)  
 do  
25      case $package in      case $package in
26          SMEServer) continue ;;          openssl)
27                build_package "--arch i386,i586,i686"
28          e-smith*) ;;              ;;
29            kernel-module-*|kmod-*|ipp2p)
30          smeserver*) ;;              build_package "--arch i586,i686"
31                ;;
32            *)
33                build_package
34                ;;
35        esac
36    }
37    
38    build_package()
39    {
40        if mzbuild $1 --specfile $SPEC >> $LOG 2>&1
41        then
42            release_rpms *.rpm
43        else
44            echo "Build of $package failed - check $LOG"
45        fi
46    }
47    
48          *) echo -n "Skipping $package "; date  for package in $(ls /builds/cvsroot/smeserver | grep "^$1.*$")
49             continue  do
50             ;;      case $package in
51            CVSROOT|anaconda|builds_bin|cdrom.image|devguide|isolinux)
52                    continue
53                    ;;
54      esac      esac
55    
56      echo -n "Building $package "; date      LOG=$HOME/logs/$package.log
57        > $LOG
58    
59      [ -d $package ] || mzget $package      echo -n "Checking $package "; date
60        (echo -n "Checking $package "; date) >> $LOG
61        echo ========================================================== >> $LOG
62    
63        cd ~/work
64        rm -rf ~/work/$package
65        mzget --dir /builds/cvsroot/smeserver $package >> $LOG
66    
67        cd ~/work/$package
68    
69        SPEC=$(ls F/*.spec 2> /dev/null | tail -1)
70        if [ -z "$SPEC" ]
71        then
72            echo "Not building $package (No SPEC file)"
73            continue
74        else
75            TAGS=$(cvs status -v $SPEC | awk '/\(revision:/{ print $1 }' | sort -u)
76        fi
77        check_package
78    
79        for tag in $TAGS
80        do
81            echo >> $LOG
82    
83            echo -n "Checking $package ($tag) "; date
84            (echo -n "Checking $package ($tag) "; date) >> $LOG
85            echo ========================================================== >> $LOG
86            cd ~/work
87            rm -rf ~/work/$package
88            mzget --dir /builds/cvsroot/smeserver --tag $tag $package >> $LOG
89    
90      (          cd ~/work/$package
         cd $package  
91    
92          LOG=$package.log          SPEC=$(ls F/*.spec 2> /dev/null | tail -1)
93          mzclean >>$LOG 2>&1          if [ -z "$SPEC" ]
   
         if mzbuild >>$LOG 2>&1  
94          then          then
95              release_rpms *.rpm              echo "Not building $package (No SPEC file)"
96          else              continue
             echo "Build of $package failed - check $LOG"  
97          fi          fi
98      )          check_package
99        done
100  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