3 # Very Very hackish script... dont laugh.
4 # Michael Beattie <mjb@debian.org>
6 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
9 prog=$scriptdir/mirrorlist/mirror_list.pl
10 masterlist=$scriptdir/mirrorlist/Mirrors.masterlist
12 test ! -f $HOME/.cvspass && \
13 echo ":pserver:anonymous@cvs.alioth.debian.org:/cvsroot/webwml A" > $HOME/.cvspass
14 grep -q "cvs.alioth.debian.org:/cvs/webwml" ~/.cvspass || \
15 echo ":pserver:anonymous@cvs.alioth.debian.org:/cvsroot/webwml A" >> $HOME/.cvspass
17 cd $(dirname $masterlist)
20 if [ ! -f $ftpdir/README.mirrors.html -o $masterlist -nt $ftpdir/README.mirrors.html ] ; then
21 rm -f $ftpdir/README.mirrors.html $ftpdir/README.mirrors.txt
22 $prog -m $masterlist -t html > $ftpdir/README.mirrors.html
23 $prog -m $masterlist -t text > $ftpdir/README.mirrors.txt
24 echo Updated archive version of mirrors file