summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control41
-rwxr-xr-xdebian/genbuilddeps35
2 files changed, 76 insertions, 0 deletions
diff --git a/debian/control b/debian/control
new file mode 100644
index 000000000..7a808b13f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,41 @@
+Source: debian-installer-manual
+Section: devel
+Priority: optional
+Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
+Uploaders: Joey Hess <joeyh@debian.org>, Frans Pop <fjp@debian.org>
+Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common, debiandoc-sgml
+# This comment can also be used to generate a Build-Depends line, by
+# running the debian/genbuilddeps program. So put each build dep on its
+# own line, prefixed by " - " and to comment out a build dep, start the
+# line with two hashes. And don't edit the Build-Depends line above by hand.
+#
+# - debhelper (>= 4)
+# Of course.
+# - docbook
+# - docbook-xml
+# - docbook-xsl
+# - xsltproc
+# The manual is a docbook XML document, so needs these to
+# build.
+# - gawk
+# Used as part of the manual build process.
+# - w3m
+# Used to generate plain text manual from html.
+# - poxml
+# Translations of the manual are done in po files via poxml.
+# - jadetex
+# - openjade | openjade1.3
+# - docbook-dsssl
+# Used for producing pdf and ps files.
+# - gs-common
+# For pdfs.
+# - debiandoc-sgml
+# partman's manual is in debiandoc.
+
+Package: debian-installer-manual
+Architecture: any
+Description: Debian installation manual
+ This package contains the Debian installation manual, in a variety of
+ languages. It also includes the installation HOWTO, and a variety of
+ developer documentation for the Debian Installer.
diff --git a/debian/genbuilddeps b/debian/genbuilddeps
new file mode 100755
index 000000000..ca94a4f06
--- /dev/null
+++ b/debian/genbuilddeps
@@ -0,0 +1,35 @@
+#!/usr/bin/perl
+# Generate build deps line from comments in the control file and replace
+# the current build deps line in the control file with it.
+
+my $control;
+if (-e "debian/control") {
+ $control="debian/control";
+}
+elsif (-e "control") {
+ $control="control";
+}
+else {
+ die "cannot find control file";
+}
+
+my @builddeps;
+my @lines;
+open (IN, $control) || die "read $control: $!";
+while (<IN>) {
+ push @lines, $_;
+ chomp;
+ if (/^#\s+-\s+(.*)$/) {
+ push @builddeps, $1;
+ }
+}
+close IN;
+
+my $builddeps=join(", ", @builddeps);
+open (OUT, ">$control.tmp") || die "write $control.tmp: $!";
+foreach (@lines) {
+ s/^(Build-Depends:\s+)(.*)/$1$builddeps/;
+ print OUT || die "print: $!";
+}
+close OUT || die "close: $!";
+rename("$control.tmp", "$control");