]> git.deb.at Git - deb/packages.git/blob - cron.d/100syncarchive_m68k
Add dummy debtags.zh-cn.po
[deb/packages.git] / cron.d / 100syncarchive_m68k
1 #! /bin/bash
2
3 . `dirname $0`/../config.sh
4
5 test -d ${archivedir} || mkdir -p ${archivedir}
6 cd ${archivedir}
7
8 # Main archive
9 #
10 arch=m68k
11 if [ -z "${localdir}" ]
12 then
13     echo using remote mirror
14     for dist in etch
15     do
16         echo "retrieve Release(.gpg) $dist"
17         test -d us/${dist}-${arch} || mkdir -p us/${dist}-${arch}
18         (cd us/${dist} &&
19             wget -q -N ${ftpsite}/dists/${dist}-${arch}/Release &&
20             wget -q -N ${ftpsite}/dists/${dist}-${arch}/Release.gpg )
21         
22 #       foo=\$arch_${dist//-/_}
23 #       for arch in `eval echo $foo`
24 #       do
25             for part in ${parts}
26             do
27                 echo retrieve Packages $dist-${arch}/$part/$arch
28                 test -d us/${dist}-${arch}/${part}/binary-${arch} || mkdir -p us/${dist}-${arch}/${part}/binary-${arch}
29                 (cd us/${dist}-${arch}/${part}/binary-${arch} &&
30                     wget -q -N ${ftpsite}/dists/${dist}-${arch}/${part}/binary-${arch}/Packages.gz)
31             done
32             #FIXME: no Contents files for p-u
33             test ! "$dist" = "experimental" || continue
34             echo retrieve Contents $dist/$arch
35             (cd us/${dist}-${arch} &&
36                 wget -q -N ${ftpsite}/dists/${dist}-${arch}/Contents-${arch}.gz)
37 #       done
38         for part in ${parts}
39         do
40             echo retrieve Sources $dist-${arch}/$part
41             test -d us/${dist}-${arch}/${part}/source || mkdir -p us/${dist}-${arch}/${part}/source
42             (cd us/${dist}-${arch}/${part}/source &&
43                 wget -q -N ${ftpsite}/dists/${dist}-${arch}/${part}/source/Sources.gz)
44         done
45     done
46 else
47     echo using local mirror
48     for dist in etch
49     do
50         echo "retrieve Releases(.gpg) $dist"
51         test -d us/${dist}-${arch} || mkdir -p us/${dist}-${arch}
52         (cd us/${dist}-${arch} &&
53             rsync -t ${localdir}/dists/${dist}-${arch}/Release &&
54             rsync -t ${localdir}/dists/${dist}-${arch}/Release.gpg )
55
56 #       foo=\$arch_${dist//-/_}
57 #       for arch in `eval echo $foo`
58 #       do
59             for part in ${parts}
60             do
61                 echo retrieve Packages $dist-${arch}/$part/$arch
62                 test -d us/${dist}-${arch}/${part}/binary-${arch} || mkdir -p us/${dist}-${arch}/${part}/binary-${arch}
63                 rsync -t ${localdir}/dists/${dist}-${arch}/${part}/binary-${arch}/Packages.gz \
64                     us/${dist}-${arch}/${part}/binary-${arch}/Packages.gz
65             done
66             #FIXME: no Contents files for p-u
67             test ! "$dist" = "experimental" || continue
68             echo retrieve Contents $dist-${arch}/$arch
69             rsync -t ${localdir}/dists/${dist}-${arch}/Contents-${arch}.gz \
70                 us/${dist}-${arch}/Contents-${arch}.gz
71 #       done
72         for part in ${parts}
73         do
74             echo retrieve Sources $dist-${arch}/$part
75             test -d us/${dist}-${arch}/${part}/source || mkdir -p us/${dist}-${arch}/${part}/source
76             rsync -t ${localdir}/dists/${dist}-${arch}/${part}/source/Sources.gz \
77                 us/${dist}-${arch}/${part}/source/Sources.gz
78         done
79     done
80 fi
81