chiark / gitweb /
sort files numerically
[bin.git] / my-debmirror
1 #! /bin/sh
2 DEB_MIRROR=${DEB_MIRROR:-ftp.de.debian.org}
3 debmirror /mirror/debian -h "$DEB_MIRROR" --passive \
4           --dist=sarge,etch,sid \
5           --section=main,contrib,non-free,main/debian-installer \
6           --arch=i386,powerpc --getcontents \
7           --ignore=^README --ignore=^doc/ \
8           --ignore=^indices/ --ignore=^tools/ --ignore=main/installer- "$@"
9 ln -nsf sarge /mirror/debian/dists/stable
10 ln -nsf etch /mirror/debian/dists/testing
11 ln -nsf sid /mirror/debian/dists/unstable
12 rsync -aqz "$DEB_MIRROR::debian/README*" /mirror/debian/
13 for dir in doc indices tools; do
14         rsync -aqz "$DEB_MIRROR::debian/$dir/" "/mirror/debian/$dir/"
15 done
16 for dist in sarge etch sid; do
17         for arch in i386 powerpc; do
18                 rsync -aqz "$DEB_MIRROR::debian/dists/$dist/main/installer-$arch/" \
19                         "/mirror/debian/dists/$dist/main/installer-$arch/"
20         done
21 done