/[smeserver]/builds_bin/build_all
ViewVC logotype

Annotation of /builds_bin/build_all

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (hide annotations) (download)
Mon Feb 13 02:31:15 2006 UTC (18 years, 9 months ago) by gordonr
Branch: MAIN
Changes since 1.6: +8 -7 lines
Build all but exceptions

1 gordonr 1.2 #!/bin/bash
2     # Build all locally maintained packages from CVS
3     # Check whether anything is new and let us know if there is
4 gordonr 1.1
5 gordonr 1.2 # Normally run as "buildrobot"
6     # Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver
7 gordonr 1.1
8 gordonr 1.4 PATH=/builds/bin:$PATH
9     export PATH
10    
11 gordonr 1.2 cd ~/work
12 gordonr 1.1
13 gordonr 1.2 for package in $(cat modules)
14 gordonr 1.1 do
15 gordonr 1.6
16 gordonr 1.2 case $package in
17 gordonr 1.5 SMEServer) continue ;;
18 gordonr 1.7 builds_bin) continue ;;
19     cdrom.image) continue ;;
20     e-smith-qpsmtpd) continue ;;
21     e-smith-spamassassin) continue ;;
22 gordonr 1.2
23 gordonr 1.7 qpsmtpd) echo "$package doesn't build automagically yet";;
24 gordonr 1.2
25 gordonr 1.7 perl-CGI-FormMagick) echo "$package doesn't build automagically yet";;
26 gordonr 1.2
27 gordonr 1.7 *) ;;
28 gordonr 1.2 esac
29    
30 gordonr 1.6 echo -n "Checking $package "; date
31 gordonr 1.3
32 gordonr 1.2 [ -d $package ] || mzget $package
33    
34 gordonr 1.6 cd $package
35 gordonr 1.4
36 gordonr 1.6 LOG=$package.log
37 gordonr 1.7 mzclean >$LOG 2>&1
38 gordonr 1.6
39     SPEC=$(echo F/*.spec) # XXX - FIXME - only one SPEC file
40    
41     if [ ! -f $SPEC ]
42     then
43     echo "Sorry - can't find $SPEC"
44     continue
45     fi
46    
47     NVR=$(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}" --specfile $SPEC)
48    
49     SRPM=/builds/rpms/SRPMS/$NVR.src.rpm
50    
51     if [ -f $SRPM ]
52     then
53     echo "$SRPM already exists"
54     continue
55     fi
56    
57     if mzbuild >>$LOG 2>&1
58     then
59     release_rpms *.rpm
60     else
61     echo "Build of $package failed - check $LOG"
62     fi
63 gordonr 1.4
64 gordonr 1.6 cd ~/work
65 gordonr 1.4 done

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed