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="" |
PATH=/builds/bin:$PATH |
9 |
|
export PATH |
10 |
|
|
11 |
for file in e-smith* |
cd ~/work |
12 |
|
|
13 |
|
for package in $(cat modules) |
14 |
do |
do |
15 |
if [ -f /builds/rpms/SRPMS/$file ] |
case $package in |
16 |
then |
SMEServer) continue ;; |
17 |
echo "Already built: $file" |
|
18 |
continue |
# e-smith*) ;; |
19 |
fi |
|
20 |
|
smeserver*) ;; |
21 |
echo "Building: $file" |
|
22 |
if rpmbuild --rebuild $file |
|
23 |
then |
*) echo -n "Skipping $package "; date |
24 |
cp -p $file /builds/rpms/SRPMS |
continue |
25 |
else |
;; |
26 |
echo "FAILED: $file" |
esac |
|
FAILED="$FAILED $file" |
|
|
fi |
|
|
done |
|
27 |
|
|
28 |
echo "Failed to build: $FAILED" |
echo -n "Building $package "; date |
29 |
|
|
30 |
|
[ -d $package ] || mzget $package |
31 |
|
|
32 |
|
( |
33 |
|
cd $package |
34 |
|
|
35 |
|
LOG=$package.log |
36 |
|
mzclean >>$LOG 2>&1 |
37 |
|
|
38 |
|
if mzbuild >>$LOG 2>&1 |
39 |
|
then |
40 |
|
release_rpms *.rpm |
41 |
|
else |
42 |
|
echo "Build of $package failed - check $LOG" |
43 |
|
fi |
44 |
|
) |
45 |
|
|
46 |
|
done |