/[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.14 by slords, Sat Dec 2 17:19:10 2006 UTC Revision 1.19 by slords, Fri Apr 27 21:32:05 2007 UTC
# Line 14  check_package() Line 14  check_package()
14  {  {
15      for NVR in $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" --specfile $SPEC)      for NVR in $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" --specfile $SPEC)
16      do      do
17          SRPM=/builds/rpms/SRPMS/$NVR.src.rpm          SRPM=/builds/rpms/SRPMS/$NVR*.src.rpm
18          if [ -f $SRPM ]          if [ -f $SRPM ]
19          then          then
20              echo "$SRPM already exists"              echo "$SRPM already exists"
# Line 26  check_package() Line 26  check_package()
26          openssl)          openssl)
27              build_package "--arch i386,i586,i686"              build_package "--arch i386,i586,i686"
28              ;;              ;;
29          kernel-module-*|kmod-*|ipp2p)          kmod-*)
30              build_package "--arch i586,i686"              build_package "--arch i586,i686"
31              ;;              ;;
32            *-kmod)
33                build_package "--arch i686"
34                ;;
35          *)          *)
36              build_package              build_package
37              ;;              ;;
# Line 37  check_package() Line 40  check_package()
40    
41  build_package()  build_package()
42  {  {
43      if mzbuild $1 --specfile $SPEC >> $LOG 2>&1      if LANG=en_US mzbuild $1 --specfile $SPEC >> $LOG 2>&1
44      then      then
45          release_rpms *.rpm          release_rpms *.rpm
46      else      else
# Line 45  build_package() Line 48  build_package()
48      fi      fi
49  }  }
50    
51  for package in $(ls /builds/cvsroot/smeserver | grep "^$1.*$")  for package in $(ls /mirrors/cvsroot/smeserver | grep "^$1.*$")
52  do  do
53      case $package in      case $package in
54          CVSROOT|anaconda|builds_bin|cdrom.image|devguide|isolinux)          CVSROOT|anaconda|booty|builds_bin|cdrom.image|devguide|isolinux)
55                  continue                  continue
56                  ;;                  ;;
57      esac      esac
# Line 62  do Line 65  do
65    
66      cd ~/work      cd ~/work
67      rm -rf ~/work/$package      rm -rf ~/work/$package
68      mzget --dir /builds/cvsroot/smeserver $package >> $LOG      mzget --dir /mirrors/cvsroot/smeserver $package >> $LOG
69    
70      cd ~/work/$package      cd ~/work/$package
71    
# Line 70  do Line 73  do
73      if [ -z "$SPEC" ]      if [ -z "$SPEC" ]
74      then      then
75          echo "Not building $package (No SPEC file)"          echo "Not building $package (No SPEC file)"
76            rm -f $LOG
77          continue          continue
78      else      else
79          TAGS=$(cvs status -v $SPEC | awk '/\(revision:/{ print $1 }' | sort -u)          TAGS=$(cvs status -v $SPEC | awk '/\(branch:/ && !/\(branch: 1\.1\.1\)/ { print $1 }' | sort -u)
80      fi      fi
81      check_package      check_package
82    
# Line 85  do Line 89  do
89          echo ========================================================== >> $LOG          echo ========================================================== >> $LOG
90          cd ~/work          cd ~/work
91          rm -rf ~/work/$package          rm -rf ~/work/$package
92          mzget --dir /builds/cvsroot/smeserver --tag $tag $package >> $LOG          mzget --dir /mirrors/cvsroot/smeserver --tag $tag $package >> $LOG
93    
94          cd ~/work/$package          cd ~/work/$package
95    


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