5 |
# Normally run as "buildrobot" |
# Normally run as "buildrobot" |
6 |
# Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver |
# Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver |
7 |
|
|
8 |
|
PATH=/builds/bin:$PATH |
9 |
|
export PATH |
10 |
|
|
11 |
cd ~/work |
cd ~/work |
12 |
|
|
13 |
for package in $(cat modules) |
for package in $(cat modules) |
14 |
do |
do |
15 |
case $package in |
case $package in |
16 |
SMEServer*) ;; |
SMEServer) continue ;; |
17 |
|
|
18 |
e-smith*) ;; |
e-smith*) ;; |
19 |
|
|
20 |
smeserver*) ;; |
smeserver*) ;; |
21 |
|
|
22 |
|
|
23 |
*) echo "Skipping $package" |
*) echo -n "Skipping $package "; date |
24 |
continue |
continue |
25 |
;; |
;; |
26 |
esac |
esac |
27 |
|
|
28 |
build_it $package |
echo -n "Building $package "; date |
|
done |
|
|
|
|
|
build_it() |
|
|
{ |
|
|
package=$1 |
|
29 |
|
|
30 |
[ -d $package ] || mzget $package |
[ -d $package ] || mzget $package |
31 |
|
|
32 |
( |
( |
33 |
cd $package |
cd $package |
|
mzsync |
|
|
mzbuild |
|
34 |
|
|
35 |
/builds/bin/release_rpms *.rpm |
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 |