37 |
|
|
38 |
build_package() |
build_package() |
39 |
{ |
{ |
40 |
if mzbuild $1 --specfile $SPEC >> $LOG 2>&1 |
if LANG=en_US mzbuild $1 --specfile $SPEC >> $LOG 2>&1 |
41 |
then |
then |
42 |
release_rpms *.rpm |
release_rpms *.rpm |
43 |
else |
else |
45 |
fi |
fi |
46 |
} |
} |
47 |
|
|
48 |
for package in $(ls /builds/cvsroot/smeserver | grep "^$1.*$") |
for package in $(ls /mirrors/cvsroot/smeserver | grep "^$1.*$") |
49 |
do |
do |
50 |
case $package in |
case $package in |
51 |
CVSROOT|anaconda|builds_bin|cdrom.image|devguide|isolinux) |
CVSROOT|anaconda|booty|builds_bin|cdrom.image|devguide|isolinux) |
52 |
continue |
continue |
53 |
;; |
;; |
54 |
esac |
esac |
62 |
|
|
63 |
cd ~/work |
cd ~/work |
64 |
rm -rf ~/work/$package |
rm -rf ~/work/$package |
65 |
mzget --dir /builds/cvsroot/smeserver $package >> $LOG |
mzget --dir /mirrors/cvsroot/smeserver $package >> $LOG |
66 |
|
|
67 |
cd ~/work/$package |
cd ~/work/$package |
68 |
|
|
70 |
if [ -z "$SPEC" ] |
if [ -z "$SPEC" ] |
71 |
then |
then |
72 |
echo "Not building $package (No SPEC file)" |
echo "Not building $package (No SPEC file)" |
73 |
|
rm -f $LOG |
74 |
continue |
continue |
75 |
else |
else |
76 |
TAGS=$(cvs status -v $SPEC | awk '/\(revision:/{ print $1 }' | sort -u) |
TAGS=$(cvs status -v $SPEC | awk '/\(branch:/ && !/\(branch: 1\.1\.1\)/ { print $1 }' | sort -u) |
77 |
fi |
fi |
78 |
check_package |
check_package |
79 |
|
|
86 |
echo ========================================================== >> $LOG |
echo ========================================================== >> $LOG |
87 |
cd ~/work |
cd ~/work |
88 |
rm -rf ~/work/$package |
rm -rf ~/work/$package |
89 |
mzget --dir /builds/cvsroot/smeserver --tag $tag $package >> $LOG |
mzget --dir /mirrors/cvsroot/smeserver --tag $tag $package >> $LOG |
90 |
|
|
91 |
cd ~/work/$package |
cd ~/work/$package |
92 |
|
|