48 |
fi |
fi |
49 |
} |
} |
50 |
|
|
51 |
for package in $(ls /mirrors/cvsroot/smeserver | grep "^$1.*$") |
for package in $(ls /mirrors/cvsroot/${2:-smeserver} | grep "^$1.*$") |
52 |
do |
do |
53 |
case $package in |
case $package in |
54 |
CVSROOT|anaconda|booty|builds_bin|cdrom.image|devguide|isolinux) |
CVSROOT|builds_bin|cdrom.image|devguide|isolinux) |
55 |
|
cd ~/work/$(hostname -s) |
56 |
|
rm -rf ~/work/$(hostname -s)/$package |
57 |
continue |
continue |
58 |
;; |
;; |
59 |
esac |
esac |
60 |
|
|
61 |
LOG=$HOME/logs/$package.log |
LOG=$HOME/work/$(hostname -s)/logs/$package.log |
62 |
> $LOG |
> $LOG |
63 |
|
|
64 |
echo -n "Checking $package "; date |
echo -n "Checking $package "; date |
65 |
(echo -n "Checking $package "; date) >> $LOG |
(echo -n "Checking $package "; date) >> $LOG |
66 |
echo ========================================================== >> $LOG |
echo ========================================================== >> $LOG |
67 |
|
|
68 |
cd ~/work |
cd ~/work/$(hostname -s) |
69 |
rm -rf ~/work/$package |
rm -rf ~/work/$(hostname -s)/$package |
70 |
mzget --dir /mirrors/cvsroot/smeserver $package >> $LOG |
mzget --dir /mirrors/cvsroot/${2:-smeserver} $package >> $LOG |
71 |
|
|
72 |
cd ~/work/$package |
cd ~/work/$(hostname -s)/$package |
73 |
|
|
74 |
SPEC=$(ls F/*.spec 2> /dev/null | tail -1) |
SPEC=$(ls F/*.spec 2> /dev/null | tail -1) |
75 |
if [ -z "$SPEC" ] |
if [ -z "$SPEC" ] |
76 |
then |
then |
77 |
echo "Not building $package (No SPEC file)" |
echo "Not building $package (No SPEC file)" |
78 |
rm -f $LOG |
rm -f $LOG |
79 |
|
cd ~/work/$(hostname -s) |
80 |
|
rm -rf ~/work/$(hostname -s)/$package |
81 |
continue |
continue |
82 |
else |
else |
83 |
TAGS=$(cvs status -v $SPEC | awk '/\(branch:/ && !/\(branch: 1\.1\.1\)/ { print $1 }' | sort -u) |
TAGS=$(cvs status -v $SPEC | awk '/\(branch:/ && !/\(branch: 1\.1\.1\)/ { print $1 }' | sort -u) |
91 |
echo -n "Checking $package ($tag) "; date |
echo -n "Checking $package ($tag) "; date |
92 |
(echo -n "Checking $package ($tag) "; date) >> $LOG |
(echo -n "Checking $package ($tag) "; date) >> $LOG |
93 |
echo ========================================================== >> $LOG |
echo ========================================================== >> $LOG |
94 |
cd ~/work |
cd ~/work/$(hostname -s) |
95 |
rm -rf ~/work/$package |
rm -rf ~/work/$(hostname -s)/$package |
96 |
mzget --dir /mirrors/cvsroot/smeserver --tag $tag $package >> $LOG |
mzget --dir /mirrors/cvsroot/${2:-smeserver} --tag $tag $package >> $LOG |
97 |
|
|
98 |
cd ~/work/$package |
cd ~/work/$(hostname -s)/$package |
99 |
|
|
100 |
SPEC=$(ls F/*.spec 2> /dev/null | tail -1) |
SPEC=$(ls F/*.spec 2> /dev/null | tail -1) |
101 |
if [ -z "$SPEC" ] |
if [ -z "$SPEC" ] |