]> git.deb.at Git - deb/packages.git/blob - cron.d/100syncarchive_volatile
Move more messages from DoSearch.pm to search.tmpl, similar to what
[deb/packages.git] / cron.d / 100syncarchive_volatile
1 #!/bin/bash
2
3 . `dirname $0`/../config.sh
4
5 test -d ${archivedir} || mkdir -p ${archivedir}
6 cd ${archivedir}
7
8 # volatile archive
9 #
10 for dist in stable
11 do
12     foo=\$arch_${dist//-/_}
13     for arch in `eval echo $foo`
14     do
15       for part in ${parts}
16       do
17         echo retrieve Packages $dist-volatile/$part/$arch
18         test -d volatile/${dist}-volatile/${part}/binary-${arch} || mkdir -p volatile/${dist}-volatile/${part}/binary-${arch}
19         (cd  volatile/${dist}-volatile/${part}/binary-${arch} &&
20             wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/binary-${arch}/Packages.gz)
21       done
22       echo retrieve Contents $dist-volatile/$arch
23       (cd volatile/${dist}-volatile &&
24           wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Contents-${arch}.gz)
25
26     done
27     for part in ${parts}
28     do
29         echo retrieve Sources $dist-volatile/$part
30         test -d volatile/${dist}-volatile/${part}/source || mkdir -p volatile/${dist}-volatile/${part}/source
31         (cd volatile/${dist}-volatile/$part/source &&
32             wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/source/Sources.gz)
33     done
34 done