/[smeserver]/builds_bin/build_all
ViewVC logotype

Contents of /builds_bin/build_all

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


Revision 1.6 - (show annotations) (download)
Mon Feb 13 02:10:54 2006 UTC (18 years, 9 months ago) by gordonr
Branch: MAIN
Changes since 1.5: +31 -13 lines
Check whether SRPM already exists

1 #!/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 # Normally run as "buildrobot"
6 # Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver
7
8 PATH=/builds/bin:$PATH
9 export PATH
10
11 cd ~/work
12
13 for package in $(cat modules)
14 do
15
16 case $package in
17 SMEServer) continue ;;
18
19 e-smith*) ;;
20
21 smeserver*) ;;
22
23
24 *) echo -n "Skipping $package "; date
25 continue
26 ;;
27 esac
28
29 echo -n "Checking $package "; date
30
31 [ -d $package ] || mzget $package
32
33 cd $package
34
35 LOG=$package.log
36 mzclean >>$LOG 2>&1
37
38 SPEC=$(echo F/*.spec) # XXX - FIXME - only one SPEC file
39
40 if [ ! -f $SPEC ]
41 then
42 echo "Sorry - can't find $SPEC"
43 continue
44 fi
45
46 NVR=$(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}" --specfile $SPEC)
47
48 SRPM=/builds/rpms/SRPMS/$NVR.src.rpm
49
50 if [ -f $SRPM ]
51 then
52 echo "$SRPM already exists"
53 continue
54 fi
55
56 if mzbuild >>$LOG 2>&1
57 then
58 release_rpms *.rpm
59 else
60 echo "Build of $package failed - check $LOG"
61 fi
62
63 cd ~/work
64 done

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