]> git.donarmstrong.com Git - lilypond.git/commitdiff
use python2; listmissing and override dh_install with a custom version
authorDon Armstrong <don@donarmstrong.com>
Wed, 12 Sep 2012 17:13:01 +0000 (10:13 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 12 Sep 2012 17:13:01 +0000 (10:13 -0700)
debian/lilypond-doc-html.install [new file with mode: 0644]
debian/lilypond-doc-pdf.install [new file with mode: 0644]
debian/rules

diff --git a/debian/lilypond-doc-html.install b/debian/lilypond-doc-html.install
new file mode 100644 (file)
index 0000000..8a71fea
--- /dev/null
@@ -0,0 +1,3 @@
+# This install file is overwritten in the override_dh_install rule in
+# debian/rules. Do not attempt to modify what is installed in the
+# lilypond-doc-html package here.
diff --git a/debian/lilypond-doc-pdf.install b/debian/lilypond-doc-pdf.install
new file mode 100644 (file)
index 0000000..8a71fea
--- /dev/null
@@ -0,0 +1,3 @@
+# This install file is overwritten in the override_dh_install rule in
+# debian/rules. Do not attempt to modify what is installed in the
+# lilypond-doc-html package here.
index 0a8b853e41f7c86fe546621939c3d9bf79b180e4..2370983443fa568598a30ce12f50dc5333f45365 100755 (executable)
@@ -28,7 +28,7 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 endif
 
 %:
-       dh $@ --parallel --with-autotools-dev
+       dh $@ --parallel --with-autotools-dev --with-python2 --list-missing
 
 
 override_dh_auto_configure: 
@@ -41,6 +41,24 @@ override_dh_auto_build-indep:
 override_dh_auto_install-indep:
        $(MAKE) install-doc prefix=$(CURDIR)/debian/tmp/usr/
 
+## we need to install only the png, ly and english html files into the
+## doc-html package, and only the english pdfs into the doc-pdf
+## package. Because dh_install doesn't support regexes, we'll use find
+## to replace the contents of the .install file before we call
+## dh_install
+override_dh_install:
+       echo -e 'usr/share/doc/lilypond/html/*/*/*.ly\nusr/share/doc/lilypond/html/*/*/*.png' \
+               > $(CURDIR)/debian/lilypond-doc-html.install
+       find $(CURDIR)/debian/tmp/ -type f \
+               -regex '.*usr/share/doc/lilypond/.*/[^\.]+.html' \
+               -printf '%P\n' >> $(CURDIR)/debian/lilypond-doc-html.install
+       echo -e ''> $(CURDIR)/debian/lilypond-doc-pdf.install
+       find $(CURDIR)/debian/tmp/ -type f \
+               -regex '.*usr/share/doc/lilypond/.*/[^\.]+.pdf' \
+               -printf '%P\n' >> $(CURDIR)/debian/lilypond-doc-pdf.install
+       dh_install
+
+
 ## this rule will update debian/control and the per-language install
 ## files; all of the files it generates/modifies should be included in
 ## the Debian package and should not need to be regenerated or