From: Peter Palfrader Date: Tue, 16 Sep 2008 22:24:05 +0000 (+0200) Subject: Install upgrade-porter-chroots script X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dsa-metapackages.git;a=commitdiff_plain;h=c8e848fc5a7a4f7a7901a84abfe9878a6f74c8cb Install upgrade-porter-chroots script --- diff --git a/debian/changelog b/debian/changelog index cca8a06..442108a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ debian.org (7) stable; urgency=low * Depend on libpam-pwdfile. + * Install upgrade-porter-chroots script. - -- Peter Palfrader Wed, 17 Sep 2008 00:23:17 +0200 + -- Peter Palfrader Wed, 17 Sep 2008 00:23:38 +0200 debian.org (6) stable; urgency=low diff --git a/debian/rules b/debian/rules index 61feca6..2226436 100755 --- a/debian/rules +++ b/debian/rules @@ -9,9 +9,11 @@ clean: binary-indep: $(RM) -r debian/tmp + install -d debian/tmp/DEBIAN debian/tmp/usr/sbin install -d debian/tmp/DEBIAN debian/tmp/usr/share/doc/debian.org chown -R root.root debian/tmp chmod -R g-ws debian/tmp + install -m755 upgrade-porter-chroots debian/tmp/usr/sbin install -m644 debian/copyright debian/tmp/usr/share/doc/debian.org/ install -m644 debian/changelog debian/tmp/usr/share/doc/debian.org/changelog gzip -9f debian/tmp/usr/share/doc/debian.org/changelog diff --git a/upgrade-porter-chroots b/upgrade-porter-chroots new file mode 100644 index 0000000..49c8af6 --- /dev/null +++ b/upgrade-porter-chroots @@ -0,0 +1,9 @@ +#!/bin/sh + +for d in etch lenny squeezy sid; do + [ -d /chroot/$d ] || continue; + chroot /chroot/$d apt-get update && + chroot /chroot/$d apt-get dist-upgrade -y && + chroot /chroot/$d apt-get clean && + chroot /chroot/$d apt-get autoremove +done