/[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.23 by slords, Tue Jun 12 14:56:43 2007 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  cd ~/work  umask 002
9    
10  for package in $(cat modules)  PATH=~/bin:$PATH
11  do  export PATH
     case $package in  
         SMEServer*) ;;  
12    
13          e-smith*) ;;  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    
25          smeserver*) ;;      case $package in
26            openssl)
27                build_package "--arch i386,i586,i686"
28                ;;
29            kmod-*)
30                build_package "--arch i586,i686"
31                ;;
32            *-kmod)
33                build_package "--arch i686"
34                ;;
35            *)
36                build_package
37                ;;
38        esac
39    }
40    
41    build_package()
42    {
43        if LANG=en_US mzbuild $1 --specfile $SPEC >> $LOG 2>&1
44        then
45            release_rpms *.rpm
46        else
47            echo "Build of $package failed - check $LOG"
48        fi
49    }
50    
51          *) echo "Skipping $package"  for package in $(ls /mirrors/cvsroot/${2:-smeserver} | grep "^$1.*$")
52             continue  do
53             ;;      case $package in
54            CVSROOT|builds_bin|cdrom.image|common|devguide|isolinux|rpms)
55                    cd ~/work/$(hostname -s)
56                    rm -rf ~/work/$(hostname -s)/$package
57                    continue
58                    ;;
59      esac      esac
60    
61      [ -d $package ] || mzget $package      LOG=$HOME/work/$(hostname -s)/logs/$package.log
62        > $LOG
63    
64      (      echo -n "Checking $package "; date
65          cd $package      (echo -n "Checking $package "; date) >> $LOG
66          mzsync      echo ========================================================== >> $LOG
67          mzbuild  
68      )      cd ~/work/$(hostname -s)
69        rm -rf ~/work/$(hostname -s)/$package
70        mzget --dir /mirrors/cvsroot/${2:-smeserver} $package >> $LOG
71    
72        cd ~/work/$(hostname -s)/$package
73    
74        SPEC=$(ls F/*.spec 2> /dev/null | tail -1)
75        if [ -z "$SPEC" ]
76        then
77            echo "Not building $package (No SPEC file)"
78            rm -f $LOG
79            cd ~/work/$(hostname -s)
80            rm -rf ~/work/$(hostname -s)/$package
81            continue
82        else
83            TAGS=$(cvs status -v $SPEC | awk '/\(branch:/ && !/\(branch: 1\.1\.1\)/ { print $1 }' | sort -u)
84        fi
85        check_package
86    
87        for tag in $TAGS
88        do
89            echo >> $LOG
90    
91            echo -n "Checking $package ($tag) "; date
92            (echo -n "Checking $package ($tag) "; date) >> $LOG
93            echo ========================================================== >> $LOG
94            cd ~/work/$(hostname -s)
95            rm -rf ~/work/$(hostname -s)/$package
96            mzget --dir /mirrors/cvsroot/${2:-smeserver} --tag $tag $package >> $LOG
97    
98            cd ~/work/$(hostname -s)/$package
99    
100            SPEC=$(ls F/*.spec 2> /dev/null | tail -1)
101            if [ -z "$SPEC" ]
102            then
103                echo "Not building $package (No SPEC file)"
104                continue
105            fi
106            check_package
107        done
108  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