Merge branch 'master' of git+ssh://git.debian.org/git/mirror/debian.org
[debian.org.git] / upgrade-porter-chroots
1 #!/bin/sh
2
3 for d in lenny squeeze sid \
4          lenny_i386 squeeze_i386 sid_i386 \
5          lenny_amd64 squeeze_amd64 sid_amd64 \
6         ; do
7         [ -d /chroot/$d ] || continue;
8         echo; echo $d; echo
9         chroot /chroot/$d apt-get update &&
10         chroot /chroot/$d apt-get dist-upgrade -y &&
11         chroot /chroot/$d apt-get clean &&
12         chroot /chroot/$d apt-get autoremove
13 done