12 |
|
|
13 |
for package in $(cat modules) |
for package in $(cat modules) |
14 |
do |
do |
|
case $package in |
|
|
SMEServer) continue ;; |
|
|
|
|
|
# e-smith*) ;; |
|
|
|
|
|
smeserver*) ;; |
|
15 |
|
|
16 |
|
case $package in |
17 |
|
SMEServer) continue ;; |
18 |
|
builds_bin) continue ;; |
19 |
|
cdrom.image) continue ;; |
20 |
|
e-smith-qpsmtpd) continue ;; |
21 |
|
e-smith-spamassassin) continue ;; |
22 |
|
|
23 |
*) echo -n "Skipping $package "; date |
*) ;; |
|
continue |
|
|
;; |
|
24 |
esac |
esac |
25 |
|
|
26 |
echo -n "Building $package "; date |
echo -n "Checking $package "; date |
27 |
|
|
28 |
[ -d $package ] || mzget $package |
[ -d $package ] || mzget $package |
29 |
|
|
30 |
( |
cd $package |
|
cd $package |
|
|
|
|
|
LOG=$package.log |
|
|
mzclean >>$LOG 2>&1 |
|
31 |
|
|
32 |
if mzbuild >>$LOG 2>&1 |
LOG=$package.log |
33 |
then |
mzclean >$LOG 2>&1 |
34 |
release_rpms *.rpm |
|
35 |
else |
SPEC=$(echo F/*.spec) # XXX - FIXME - only one SPEC file |
36 |
echo "Build of $package failed - check $LOG" |
|
37 |
fi |
if [ ! -f $SPEC ] |
38 |
) |
then |
39 |
|
echo "Sorry - can't find $SPEC" |
40 |
|
continue |
41 |
|
fi |
42 |
|
|
43 |
|
NVR=$(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}" --specfile $SPEC) |
44 |
|
|
45 |
|
SRPM=/builds/rpms/SRPMS/$NVR.src.rpm |
46 |
|
|
47 |
|
if [ -f $SRPM ] |
48 |
|
then |
49 |
|
echo "$SRPM already exists" |
50 |
|
continue |
51 |
|
fi |
52 |
|
|
53 |
|
if mzbuild >>$LOG 2>&1 |
54 |
|
then |
55 |
|
release_rpms *.rpm |
56 |
|
else |
57 |
|
echo "Build of $package failed - check $LOG" |
58 |
|
fi |
59 |
|
|
60 |
|
cd ~/work |
61 |
done |
done |