]> git.donarmstrong.com Git - lilypond.git/commitdiff
Install jpg, css and preview.pdf files into the doc packages
authorDon Armstrong <don@donarmstrong.com>
Fri, 14 Sep 2012 18:36:51 +0000 (11:36 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 14 Sep 2012 18:36:51 +0000 (11:36 -0700)
debian/rules

index 4cb3edcb8daf2b1653f84fa834c1d410b422d2b4..eab7b203d4b269e9744663eb5e389d9b602da2a2 100755 (executable)
@@ -43,22 +43,27 @@ override_dh_auto_install-indep:
        rm -rf $(CURDIR)/debian/tmp/usr/share/omf
        rm -rf $(CURDIR)/debian/tmp/usr/share/doc/lilypond/html/input
 
-## 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
+## we need to install only the png, jpg, css, 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' \
+       /bin/echo -e 'usr/share/doc/lilypond/html/*/*/*.ly\nusr/share/doc/lilypond/html/*/*/*.png' \
                > $(CURDIR)/debian/lilypond-doc-html.install
+       /bin/echo -e 'usr/share/doc/lilypond/html/*/*/*.jpg\nusr/share/doc/lilypond/html/*/*/*.css' \
+               >> $(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
+       /bin/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
+       find $(CURDIR)/debian/tmp/ -type f \
+               -regex '.*usr/share/doc/lilypond/.*/[^\.]+.preview.pdf' \
+               -printf '%P\n' >> $(CURDIR)/debian/lilypond-doc-pdf.install
+       dh_install --list-missing
 
 
 ## this rule will update debian/control and the per-language install