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" |
|
|
if rpmbuild --rebuild $file |
|
|
then |
|
|
cp -p $file /builds/rpms/SRPMS |
|
|
else |
|
|
echo "FAILED: $file" |
|
|
FAILED="$FAILED $file" |
|
|
fi |
|
|
done |
|
19 |
|
|
20 |
echo "Failed to build: $FAILED" |
*) echo "Skipping $package" |
21 |
|
continue |
22 |
|
;; |
23 |
|
esac |
24 |
|
|
25 |
|
[ -d $package ] || mzget $package |
26 |
|
|
27 |
|
( |
28 |
|
cd $package |
29 |
|
mzsync |
30 |
|
mzbuild |
31 |
|
) |
32 |
|
done |