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 |
|
perl-CGI-FormMagick|qpsmtpd|qpsmtpd-old) |
24 |
|
echo "$package doesn't build automagically yet" |
25 |
|
continue ;; |
26 |
|
|
27 |
*) echo -n "Skipping $package "; date |
*) ;; |
|
continue |
|
|
;; |
|
28 |
esac |
esac |
29 |
|
|
30 |
echo -n "Building $package "; date |
echo -n "Checking $package "; date |
31 |
|
|
32 |
[ -d $package ] || mzget $package |
[ -d $package ] || mzget $package |
33 |
|
|
34 |
( |
cd $package |
|
cd $package |
|
|
|
|
|
LOG=$package.log |
|
|
mzclean >>$LOG 2>&1 |
|
35 |
|
|
36 |
if mzbuild >>$LOG 2>&1 |
LOG=$package.log |
37 |
then |
mzclean >$LOG 2>&1 |
38 |
release_rpms *.rpm |
|
39 |
else |
SPEC=$(echo F/*.spec) # XXX - FIXME - only one SPEC file |
40 |
echo "Build of $package failed - check $LOG" |
|
41 |
fi |
if [ ! -f $SPEC ] |
42 |
) |
then |
43 |
|
echo "Sorry - can't find $SPEC" |
44 |
|
continue |
45 |
|
fi |
46 |
|
|
47 |
|
NVR=$(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}" --specfile $SPEC) |
48 |
|
|
49 |
|
SRPM=/builds/rpms/SRPMS/$NVR.src.rpm |
50 |
|
|
51 |
|
if [ -f $SRPM ] |
52 |
|
then |
53 |
|
echo "$SRPM already exists" |
54 |
|
continue |
55 |
|
fi |
56 |
|
|
57 |
|
if mzbuild >>$LOG 2>&1 |
58 |
|
then |
59 |
|
release_rpms *.rpm |
60 |
|
else |
61 |
|
echo "Build of $package failed - check $LOG" |
62 |
|
fi |
63 |
|
|
64 |
|
cd ~/work |
65 |
done |
done |