14 |
{ |
{ |
15 |
for NVR in $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" --specfile $SPEC) |
for NVR in $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" --specfile $SPEC) |
16 |
do |
do |
17 |
SRPM=/builds/rpms/SRPMS/$NVR.src.rpm |
SRPM=/builds/rpms/SRPMS/$NVR*.src.rpm |
18 |
if [ -f $SRPM ] |
if [ -f $SRPM ] |
19 |
then |
then |
20 |
echo "$SRPM already exists" |
echo "$SRPM already exists" |
29 |
kmod-*) |
kmod-*) |
30 |
build_package "--arch i586,i686" |
build_package "--arch i586,i686" |
31 |
;; |
;; |
32 |
|
*-kmod) |
33 |
|
build_package "--arch i686" |
34 |
|
;; |
35 |
*) |
*) |
36 |
build_package |
build_package |
37 |
;; |
;; |
48 |
fi |
fi |
49 |
} |
} |
50 |
|
|
51 |
for package in $(ls /builds/cvsroot/smeserver | grep "^$1.*$") |
for package in $(ls /mirrors/cvsroot/smeserver | grep "^$1.*$") |
52 |
do |
do |
53 |
case $package in |
case $package in |
54 |
CVSROOT|anaconda|booty|builds_bin|cdrom.image|devguide|isolinux) |
CVSROOT|anaconda|booty|builds_bin|cdrom.image|devguide|isolinux) |
65 |
|
|
66 |
cd ~/work |
cd ~/work |
67 |
rm -rf ~/work/$package |
rm -rf ~/work/$package |
68 |
mzget --dir /builds/cvsroot/smeserver $package >> $LOG |
mzget --dir /mirrors/cvsroot/smeserver $package >> $LOG |
69 |
|
|
70 |
cd ~/work/$package |
cd ~/work/$package |
71 |
|
|
89 |
echo ========================================================== >> $LOG |
echo ========================================================== >> $LOG |
90 |
cd ~/work |
cd ~/work |
91 |
rm -rf ~/work/$package |
rm -rf ~/work/$package |
92 |
mzget --dir /builds/cvsroot/smeserver --tag $tag $package >> $LOG |
mzget --dir /mirrors/cvsroot/smeserver --tag $tag $package >> $LOG |
93 |
|
|
94 |
cd ~/work/$package |
cd ~/work/$package |
95 |
|
|