lilypond (2.18.0-1) unstable; urgency=low
* New upstream version (closes: #729817)
+ * Fix replacement of /usr/share/info/lilypond symlink with a directory
+ (Closes: #736306)
-- Don Armstrong <don@debian.org> Tue, 31 Dec 2013 13:23:41 -0800
Section: tex
Priority: optional
Maintainer: Don Armstrong <don@debian.org>
-Standards-Version: 3.9.3
+Standards-Version: 3.9.5
Homepage: http://lilypond.org/
Vcs-Git: git://git.donarmstrong.com/lilypond.git
Vcs-Browser: http://git.donarmstrong.com/lilypond.git
--- /dev/null
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if dpkg-maintscript-helper supports symlink_to_dir; then
+ dpkg-maintscript-helper symlink_to_dir \
+ /usr/share/info/lilypond ../doc/lilypond/html/Documentation/user \
+ 2.18.0-1~ lilypond-doc -- "$@"
+fi;
--- /dev/null
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if dpkg-maintscript-helper supports symlink_to_dir; then
+ dpkg-maintscript-helper symlink_to_dir \
+ /usr/share/info/lilypond ../doc/lilypond/html/Documentation/user \
+ 2.18.0-1~ lilypond-doc -- "$@"
+fi;
--- /dev/null
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if dpkg-maintscript-helper supports symlink_to_dir; then
+ dpkg-maintscript-helper symlink_to_dir \
+ /usr/share/info/lilypond ../doc/lilypond/html/Documentation/user \
+ 2.18.0-1~ lilypond-doc -- "$@"
+fi;
--- /dev/null
+#!/usr/bin/perl
+
+use warnings;
+use strict;
+
+use IO::File;
+use File::Find;
+
+# <a href="http://validator.w3.org/check?uri=referer">
+# <img src="http://www.w3.org/Icons/valid-html401"
+# alt="Valid HTML 4.01 Transitional"
+# height="31" width="88"></a>
+
+file_find(\&fix_if_file,@ARGV)
+
+sub fix_if_file {
+ return unless -f $_;
+ my $fh = IO::File->new($_,'r') or
+ die "Unable to open $_ for reading: $!";
+ local $/;
+ my $fc = <$fh>;
+ close($fh);
+ if (# strip out the w3c img callback; replace with alt text
+ $fc =~ s{<img\s+src="http://www.w3c.org/Icons/[^"]+"[^>]*?alt="([^"]+)"[^>]*>}{$1}img
+ or
+ # if it doesn't have alt text, just replace it with Valid HTML
+ $fc =~ s{<img\s+src="http://www.w3c.org/Icons/[^"]+"[^>]*>}{Valid HTML}img ) {
+ $fh = IO::File->new($_,'w') or
+ die "Unable to open $_ for writing: $!";
+ print {$fh} $fc;
+ close($fh);
+ }
+}
$(MAKE) install-info $(DOC_OPTIONS) prefix=$(CURDIR)/debian/tmp/usr
rm -rf $(CURDIR)/debian/tmp/usr/share/omf
rm -rf $(CURDIR)/debian/tmp/usr/share/doc/lilypond/html/input
+ perl debian/remove_w3c_callback $(CURDIR)/debian/tmp/usr/share/doc/lilypond/ $(CURDIR)/debian/tmp/usr/share/info/
## Unfortunately, lilypond is kind of broken, and installs the wrong
## info documentation (missing images) if we call their makefile