chiark / gitweb /
superseded by moreutils
[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=etch,sid \
5           --section=main,contrib,non-free,main/debian-installer \
6           --arch=amd64,i386,powerpc --getcontents \
7           --ignore=^README --ignore=^doc/ \
8           --ignore=^indices/ --ignore=^tools/ --ignore=main/installer- "$@"
9 ln -nsf etch /mirror/debian/dists/testing
10 ln -nsf sid /mirror/debian/dists/unstable
11 rsync -aqz "$DEB_MIRROR::debian/README*" /mirror/debian/
12 for dir in doc indices tools; do
13         rsync -aqz --delete "$DEB_MIRROR::debian/$dir/" "/mirror/debian/$dir/"
14 done
15 for dist in etch sid; do
16         for arch in amd64 i386 powerpc; do
17                 rsync -aqz --delete \
18                         "$DEB_MIRROR::debian/dists/$dist/main/installer-$arch/" \
19                         "/mirror/debian/dists/$dist/main/installer-$arch/"
20         done
21 done