1 |
#!/bin/sh |
#!/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 |
cd /mirrors/mitel/devel/repo/SRPMS |
# Normally run as "buildrobot" |
6 |
|
# Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver |
7 |
|
|
8 |
FAILED="" |
cd ~/work |
9 |
|
|
10 |
for file in e-smith* |
for package in $(cat modules) |
11 |
do |
do |
12 |
if [ -f /builds/rpms/SRPMS/$file ] |
case $package in |
13 |
then |
SMEServer*) ;; |
14 |
echo "Already built: $file" |
|
15 |
continue |
e-smith*) ;; |
16 |
fi |
|
17 |
|
smeserver*) ;; |
18 |
echo "Building: $file" |
|
19 |
if rpmbuild --rebuild $file |
|
20 |
then |
*) echo "Skipping $package" |
21 |
cp -p $file /builds/rpms/SRPMS |
continue |
22 |
else |
;; |
23 |
echo "FAILED: $file" |
esac |
24 |
FAILED="$FAILED $file" |
|
25 |
fi |
build_it $package |
26 |
done |
done |
27 |
|
|
28 |
echo "Failed to build: $FAILED" |
build_it() |
29 |
|
{ |
30 |
|
package=$1 |
31 |
|
|
32 |
|
[ -d $package ] || mzget $package |
33 |
|
|
34 |
|
( |
35 |
|
cd $package |
36 |
|
mzsync |
37 |
|
mzbuild |
38 |
|
|
39 |
|
/builds/bin/release_rpms *.rpm |
40 |
|
) |
41 |
|
} |