]> git.deb.at Git - deb/packages.git/blob - cron.d/100syncarchive_backports
Move more messages from DoSearch.pm to search.tmpl, similar to what
[deb/packages.git] / cron.d / 100syncarchive_backports
1 #!/bin/bash
2
3 . `dirname $0`/../config.sh
4
5 test -d ${archivedir} || mkdir -p ${archivedir}
6 cd ${archivedir}
7
8 # backports 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-backports/$part/$arch
18         test -d backports/${dist}-backports/${part}/binary-${arch} || mkdir -p backports/${dist}-backports/${part}/binary-${arch}
19         (cd backports/${dist}-backports/${part}/binary-${arch} &&
20             wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/binary-${arch}/Packages.gz)
21       done
22       echo retrieve Contents $dist-backports/$arch
23       (cd backports/${dist}-backports &&
24           wget -q -N ${backports_ftpsite}/dists/sarge-backports/Contents-${arch}.gz)
25     done
26     for part in ${parts}
27     do
28         echo retrieve Sources $dist-backports/$part
29         test -d backports/${dist}-backports/${part}/source || mkdir -p backports/${dist}-backports/${part}/source
30         (cd backports/${dist}-backports/${part}/source &&
31             wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/source/Sources.gz)
32     done
33 done