chiark / gitweb /
set -e to make it easier to kill this
[bin.git] / my-debmirror
1 #! /bin/sh
2 set -e
3 DEB_MIRROR=${DEB_MIRROR:-ftp.de.debian.org}
4 debmirror /mirror/debian -h "$DEB_MIRROR" --method http \
5           --dist=lenny,squeeze,sid \
6           --section=main,contrib,non-free,main/debian-installer \
7           --arch=amd64,i386 --getcontents \
8           --ignore=^README --ignore=^doc/ \
9           --ignore=^indices/ --ignore=^tools/ --ignore=main/installer- "$@"
10 ln -nsf lenny /mirror/debian/dists/stable
11 ln -nsf squeeze /mirror/debian/dists/testing
12 ln -nsf sid /mirror/debian/dists/unstable
13 rsync -aqz "$DEB_MIRROR::debian/README*" /mirror/debian/
14 for dir in doc indices tools; do
15         rsync -aqz --delete "$DEB_MIRROR::debian/$dir/" "/mirror/debian/$dir/"
16 done
17 for dist in lenny squeeze sid; do
18         for arch in amd64 i386; do
19                 rsync -aqz --delete \
20                         "$DEB_MIRROR::debian/dists/$dist/main/installer-$arch/" \
21                         "/mirror/debian/dists/$dist/main/installer-$arch/"
22         done
23 done