chiark / gitweb /
Install upgrade-porter-chroots script
authorPeter Palfrader <peter@palfrader.org>
Tue, 16 Sep 2008 22:24:05 +0000 (00:24 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 16 Sep 2008 22:24:05 +0000 (00:24 +0200)
debian/changelog
debian/rules
upgrade-porter-chroots [new file with mode: 0644]

index cca8a06297592e7b13fd31553840df000f1230e5..442108a1ef455c9eed2f017116f117a86a18c88c 100644 (file)
@@ -1,8 +1,9 @@
 debian.org (7) stable; urgency=low
 
   * Depend on libpam-pwdfile.
+  * Install upgrade-porter-chroots script.
 
- -- Peter Palfrader <weasel@debian.org>  Wed, 17 Sep 2008 00:23:17 +0200
+ -- Peter Palfrader <weasel@debian.org>  Wed, 17 Sep 2008 00:23:38 +0200
 
 debian.org (6) stable; urgency=low
 
index 61feca680e7e933c6e1eca19e2cd6b77ccda5e63..22264369f91178e48e0586c8c6a1b02baed06579 100755 (executable)
@@ -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 (file)
index 0000000..49c8af6
--- /dev/null
@@ -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