[Pkg-ocaml-maint-commits] [SCM] pkglab packaging branch, master, updated. debian/1.4.2-4-34-ga1e30df

Ralf Treinen treinen at free.fr
Sat Mar 20 09:52:30 UTC 2010


The following commit has been merged in the master branch:
commit a1e30dff049ed9e0a63e2afa907186518fca94be
Author: Ralf Treinen <treinen at free.fr>
Date:   Sat Mar 20 10:51:38 2010 +0100

    script to construct a python script that defines buildessentials[]

diff --git a/debian/contrib/get-buildessentials b/debian/contrib/get-buildessentials
new file mode 100755
index 0000000..201fa56
--- /dev/null
+++ b/debian/contrib/get-buildessentials
@@ -0,0 +1,24 @@
+#!/usr/bin/perl
+
+$output = "buildessentials.py";
+$mirror="ftp://ftp.fr.debian.org/debian";
+ at arches=("alpha", "amd64", "armel", "hppa", "hurd-i386", "i386", "ia64",
+    "kfreebsd-amd64", "kfreebsd-i386", "mips", "mipsel", "powerpc",
+    "s390", "sparc");
+
+open(OUT,">$output");
+select OUT;
+foreach $arch (@arches) {
+    my($isfirst)=1;
+    print "buildessentials[\'$arch\']=[";
+    open(ESS,"wget -O - $mirror/dists/sid/main/binary-$arch/Packages.bz2 | bzcat | grep-dctrl -FBuild-Essential -ni yes -sPackage |");
+    while ($p=<ESS>) {
+	chop $p;
+	print ", " unless $isfirst;
+	print "'$p\'";
+	$isfirst=0;
+    }
+    print "]\n";
+    close ESS;
+}
+close OUT;

-- 
pkglab packaging



More information about the Pkg-ocaml-maint-commits mailing list