]> git.donarmstrong.com Git - lilypond.git/commitdiff
add all of the per-language package files
authorDon Armstrong <don@donarmstrong.com>
Tue, 11 Sep 2012 20:32:44 +0000 (13:32 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 11 Sep 2012 20:32:44 +0000 (13:32 -0700)
16 files changed:
debian/control
debian/lilypond-doc-html-cs.install [new file with mode: 0644]
debian/lilypond-doc-html-de.install [new file with mode: 0644]
debian/lilypond-doc-html-fr.install [new file with mode: 0644]
debian/lilypond-doc-html-hu.install [new file with mode: 0644]
debian/lilypond-doc-html-it.install [new file with mode: 0644]
debian/lilypond-doc-html-ja.install [new file with mode: 0644]
debian/lilypond-doc-html-nl.install [new file with mode: 0644]
debian/lilypond-doc-html-zh.install [new file with mode: 0644]
debian/lilypond-doc-pdf-de.install [new file with mode: 0644]
debian/lilypond-doc-pdf-es.install [new file with mode: 0644]
debian/lilypond-doc-pdf-fr.install [new file with mode: 0644]
debian/lilypond-doc-pdf-hu.install [new file with mode: 0644]
debian/lilypond-doc-pdf-it.install [new file with mode: 0644]
debian/lilypond-doc-pdf-ja.install [new file with mode: 0644]
debian/update_doc_packages [new file with mode: 0644]

index 056637628f5995efd58c9b5c067c83d3a3914c79..3f7447dc0ad9d79537d431e6223f47a1a198c295 100644 (file)
@@ -64,10 +64,212 @@ Package: lilypond-doc
 Section: doc
 Architecture: all
 Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
-Suggests: lilypond (>= ${source:Version}), gv | postscript-viewer, mozilla-browser | www-browser
-Description: LilyPond Documentation in HTML, PS and DVI formats
+Recommends: lilypond-doc-html, lilypond-doc-pdf
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond Documentation in info format (and meta package)
  LilyPond is a music typesetter, an automated engraving system.  It
  produces beautiful sheet music using a high level description file as input.
  .
- This package contains the HTML, PostScript and DVI documentation for the
+ This package includes the info documentation and recommends the html
+ and pdf documentation for the LilyPond music typesetting software.
+
+Package: lilypond-doc-pdf
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: evince | pdf-viewer
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond PDF Documentation
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the PDF documentation for the LilyPond music
+ typesetting software.
+
+Package: lilypond-doc-html
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: mozilla-browser | www-browser
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation for the LilyPond music
+ typesetting software.
+
+Package: lilypond-doc-html-cs
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in Czech
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in Czech for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-html-de
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in German
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in German for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-html-fr
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in French
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in French for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-html-hu
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in Hungarian
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in Hungarian for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-html-it
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in Italian
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in Italian for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-html-ja
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in Japanese
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in Japanese for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-html-nl
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in Dutch
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in Dutch for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-html-zh
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info, lilypond-doc-html
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond HTML Documentation in Chinese
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the HTML documentation in Chinese for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-pdf-de
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: evince | pdf-viewer
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond PDF Documentation in German
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the PDF documentation in German for the
  LilyPond music typesetting software.
+
+Package: lilypond-doc-pdf-es
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: evince | pdf-viewer
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond PDF Documentation in Spanish
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the PDF documentation in Spanish for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-pdf-fr
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: evince | pdf-viewer
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond PDF Documentation in French
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the PDF documentation in French for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-pdf-hu
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: evince | pdf-viewer
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond PDF Documentation in Hungarian
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the PDF documentation in Hungarian for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-pdf-it
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: evince | pdf-viewer
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond PDF Documentation in Italian
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the PDF documentation in Italian for the
+ LilyPond music typesetting software.
+
+Package: lilypond-doc-pdf-ja
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Recommends: evince | pdf-viewer
+Suggests: lilypond (>= ${source:Version})
+Description: LilyPond PDF Documentation in Japanese
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the PDF documentation in Japanese for the
+ LilyPond music typesetting software.
+
diff --git a/debian/lilypond-doc-html-cs.install b/debian/lilypond-doc-html-cs.install
new file mode 100644 (file)
index 0000000..3079be3
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.cs.html
+usr/share/doc/lilypond/html/*/*.cs.html
+usr/share/doc/lilypond/html/*.cs.html
diff --git a/debian/lilypond-doc-html-de.install b/debian/lilypond-doc-html-de.install
new file mode 100644 (file)
index 0000000..2475426
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.de.html
+usr/share/doc/lilypond/html/*/*.de.html
+usr/share/doc/lilypond/html/*.de.html
diff --git a/debian/lilypond-doc-html-fr.install b/debian/lilypond-doc-html-fr.install
new file mode 100644 (file)
index 0000000..294331f
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.fr.html
+usr/share/doc/lilypond/html/*/*.fr.html
+usr/share/doc/lilypond/html/*.fr.html
diff --git a/debian/lilypond-doc-html-hu.install b/debian/lilypond-doc-html-hu.install
new file mode 100644 (file)
index 0000000..7dff5eb
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.hu.html
+usr/share/doc/lilypond/html/*/*.hu.html
+usr/share/doc/lilypond/html/*.hu.html
diff --git a/debian/lilypond-doc-html-it.install b/debian/lilypond-doc-html-it.install
new file mode 100644 (file)
index 0000000..3ce27fd
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.it.html
+usr/share/doc/lilypond/html/*/*.it.html
+usr/share/doc/lilypond/html/*.it.html
diff --git a/debian/lilypond-doc-html-ja.install b/debian/lilypond-doc-html-ja.install
new file mode 100644 (file)
index 0000000..7d4867c
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.ja.html
+usr/share/doc/lilypond/html/*/*.ja.html
+usr/share/doc/lilypond/html/*.ja.html
diff --git a/debian/lilypond-doc-html-nl.install b/debian/lilypond-doc-html-nl.install
new file mode 100644 (file)
index 0000000..82134be
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.nl.html
+usr/share/doc/lilypond/html/*/*.nl.html
+usr/share/doc/lilypond/html/*.nl.html
diff --git a/debian/lilypond-doc-html-zh.install b/debian/lilypond-doc-html-zh.install
new file mode 100644 (file)
index 0000000..191ecd2
--- /dev/null
@@ -0,0 +1,3 @@
+usr/share/doc/lilypond/html/*/*/*.zh.html
+usr/share/doc/lilypond/html/*/*.zh.html
+usr/share/doc/lilypond/html/*.zh.html
diff --git a/debian/lilypond-doc-pdf-de.install b/debian/lilypond-doc-pdf-de.install
new file mode 100644 (file)
index 0000000..065d938
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/doc/lilypond/html/*/*.de.pdf
+usr/share/doc/lilypond/html/*.de.pdf
diff --git a/debian/lilypond-doc-pdf-es.install b/debian/lilypond-doc-pdf-es.install
new file mode 100644 (file)
index 0000000..462b2ef
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/doc/lilypond/html/*/*.es.pdf
+usr/share/doc/lilypond/html/*.es.pdf
diff --git a/debian/lilypond-doc-pdf-fr.install b/debian/lilypond-doc-pdf-fr.install
new file mode 100644 (file)
index 0000000..78032d4
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/doc/lilypond/html/*/*.fr.pdf
+usr/share/doc/lilypond/html/*.fr.pdf
diff --git a/debian/lilypond-doc-pdf-hu.install b/debian/lilypond-doc-pdf-hu.install
new file mode 100644 (file)
index 0000000..7ad3eec
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/doc/lilypond/html/*/*.hu.pdf
+usr/share/doc/lilypond/html/*.hu.pdf
diff --git a/debian/lilypond-doc-pdf-it.install b/debian/lilypond-doc-pdf-it.install
new file mode 100644 (file)
index 0000000..b6c3aef
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/doc/lilypond/html/*/*.it.pdf
+usr/share/doc/lilypond/html/*.it.pdf
diff --git a/debian/lilypond-doc-pdf-ja.install b/debian/lilypond-doc-pdf-ja.install
new file mode 100644 (file)
index 0000000..450aefa
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/doc/lilypond/html/*/*.ja.pdf
+usr/share/doc/lilypond/html/*.ja.pdf
diff --git a/debian/update_doc_packages b/debian/update_doc_packages
new file mode 100644 (file)
index 0000000..3d35e43
--- /dev/null
@@ -0,0 +1,96 @@
+#!/usr/bin/perl
+
+use warnings;
+use strict;
+
+use IO::File;
+
+my $cf = $ARGV[0];
+my $df = $ARGV[1];
+
+my $cfh = IO::File->new("debian/control",'r') or
+    die "Unable to open $cf for reading: $!";
+
+my $dfh = IO::File->new("debian/doc_languages.txt",'r') or
+    die "Unable to open $df for reading: $!";
+
+# read in languages
+my %languages;
+while (<$dfh>) {
+    chomp;
+    my ($type,$short,$long) = split /\s+/;
+    $languages{$type}{$short} = $long;
+}
+
+# parse control file
+my $new_control_file;
+my $discard_stanza = 0;
+while (<$cfh>) {
+    if (/^Package: lilypond-doc-(pdf|html)-.*/) {
+       $discard_stanza = 1;
+    }
+    if (/^\n?$/) {
+       if ($discard_stanza) {
+           $discard_stanza = 0;
+           next;
+       }
+    }
+    next if $discard_stanza;
+    $new_control_file .= $_;
+}
+close($cfh);
+
+for my $type (sort keys %languages) {
+    my $uc_type = uc($type);
+    my $recommends = '';
+    my $depends = '';
+    if ($type eq 'html') {
+       $recommends = '';
+       # this is required because the images are only in the -html
+       # package
+       $depends = ', lilypond-doc-html'
+    } else {
+       $recommends = "\nRecommends: evince | pdf-viewer";
+    }
+    for my $lang (sort keys %{$languages{$type}}) {
+       my $ucfirst_long_lang = ucfirst($languages{$type}{$lang});
+       # write out the control file stanza
+       $new_control_file .= <<EOF;
+Package: lilypond-doc-$type-$lang
+Section: doc
+Architecture: all
+Depends: \${misc:Depends}, dpkg (>= 1.15.4) | install-info${depends}${recommends}
+Suggests: lilypond (>= \${source:Version})
+Description: LilyPond $uc_type Documentation in $ucfirst_long_lang
+ LilyPond is a music typesetter, an automated engraving system.  It
+ produces beautiful sheet music using a high level description file as input.
+ .
+ This package contains the $uc_type documentation in $ucfirst_long_lang for the
+ LilyPond music typesetting software.
+
+EOF
+       # write out the package.install file for this example
+        my $install_fh = IO::File->new("debian/lilypond-doc-$type-${lang}.install",'w') or
+            die "Unable to open debian/lilypond-doc-$type-${lang}.install for writing: $!";
+       if ($type eq 'html') {
+           print {$install_fh} <<EOF;
+usr/share/doc/lilypond/html/*/*/*.${lang}.html
+usr/share/doc/lilypond/html/*/*.${lang}.html
+usr/share/doc/lilypond/html/*.${lang}.html
+EOF
+
+       } else {
+           print {$install_fh} <<EOF;
+usr/share/doc/lilypond/html/*/*.${lang}.pdf
+usr/share/doc/lilypond/html/*.${lang}.pdf
+EOF
+       }
+       close($install_fh);
+    }
+}
+
+$cfh = IO::File->new('debian/control','w') or
+    die "Unable to open debian/control for writing: $!";
+print {$cfh} $new_control_file;
+
+close($cfh);