1 |
gordonr |
1.2 |
#!/bin/bash |
2 |
|
|
# Build all locally maintained packages from CVS |
3 |
|
|
# Check whether anything is new and let us know if there is |
4 |
gordonr |
1.1 |
|
5 |
gordonr |
1.2 |
# Normally run as "buildrobot" |
6 |
|
|
# Requires CVS/SSH access to cvs.sourceforge.net:/cvsroot/smeserver |
7 |
gordonr |
1.1 |
|
8 |
gordonr |
1.4 |
PATH=/builds/bin:$PATH |
9 |
|
|
export PATH |
10 |
|
|
|
11 |
gordonr |
1.2 |
cd ~/work |
12 |
gordonr |
1.1 |
|
13 |
gordonr |
1.2 |
for package in $(cat modules) |
14 |
gordonr |
1.1 |
do |
15 |
gordonr |
1.2 |
case $package in |
16 |
gordonr |
1.4 |
SMEServer) continue ;; |
17 |
gordonr |
1.2 |
|
18 |
gordonr |
1.4 |
# e-smith*) ;; |
19 |
gordonr |
1.2 |
|
20 |
gordonr |
1.4 |
smeserver*) ;; |
21 |
gordonr |
1.2 |
|
22 |
|
|
|
23 |
gordonr |
1.4 |
*) echo -n "Skipping $package "; date |
24 |
gordonr |
1.2 |
continue |
25 |
|
|
;; |
26 |
|
|
esac |
27 |
|
|
|
28 |
gordonr |
1.4 |
echo -n "Building $package "; date |
29 |
gordonr |
1.3 |
|
30 |
gordonr |
1.2 |
[ -d $package ] || mzget $package |
31 |
|
|
|
32 |
|
|
( |
33 |
|
|
cd $package |
34 |
gordonr |
1.3 |
|
35 |
gordonr |
1.4 |
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 |
gordonr |
1.2 |
) |
45 |
gordonr |
1.4 |
|
46 |
|
|
done |