/[webwml]/packages/cron/100syncarchive
ViewVC logotype

Contents of /packages/cron/100syncarchive

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jun 1 22:17:16 2007 UTC (5 years, 11 months ago) by djpig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +4 -0 lines
Add support for kfreebsd-amd64 and armel. Closes: #368761
Based on a patch by Petr Salinger.
Really, really sorry for all the delays...
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 if [ -z "${localdir}" ]
11 then
12 for dist in $dists
13 do
14
15 foo=\$arch_${dist//-/_}
16 for arch in `eval echo $foo`
17 do
18 test ! "$arch" = "kfreebsd-i386" || continue
19 test ! "$arch" = "kfreebsd-amd64" || continue
20 test ! "$arch" = "armel" || continue
21 for part in ${parts}
22 do
23 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
24 (cd us/${dist}/${part}/binary-${arch} &&
25 wget -q -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
26 done
27 #FIXME: no Contents files for p-u
28 (cd us/${dist} &&
29 wget -q -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
30 done
31 for part in ${parts}
32 do
33 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
34 (cd us/${dist}/${part}/source &&
35 wget -q -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
36 done
37 done
38 else
39 for dist in $dists
40 do
41 foo=\$arch_${dist//-/_}
42 for arch in `eval echo $foo`
43 do
44 test ! "$arch" = "kfreebsd-i386" || continue
45 test ! "$arch" = "kfreebsd-amd64" || continue
46 test ! "$arch" = "armel" || continue
47 for part in ${parts}
48 do
49 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
50 rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
51 us/${dist}/${part}/binary-${arch}/Packages.gz
52 done
53 #FIXME: no Contents files for p-u
54 rsync -t ${localdir}/dists/${dist}/Contents-${arch}.gz \
55 us/${dist}/Contents-${arch}.gz
56 done
57 for part in ${parts}
58 do
59 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
60 rsync -t ${localdir}/dists/${dist}/${part}/source/Sources.gz \
61 us/${dist}/${part}/source/Sources.gz
62 done
63 done
64 fi
65
66 # security archive
67 #
68 for dist in oldstable stable testing
69 do
70 foo=\$arch_${dist//-/_}
71 for arch in `eval echo $foo`
72 do
73 for part in ${parts}
74 do
75 test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch}
76 (cd security/${dist}/${part}/binary-${arch} &&
77 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz)
78 done
79 done
80 for part in ${parts}
81 do
82 test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source
83 (cd security/${dist}/${part}/source &&
84 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz)
85 done
86 done

  ViewVC Help
Powered by ViewVC 1.1.5