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 cca8a06..442108a 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 61feca6..2226436 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