]> git.donarmstrong.com Git - lilypond.git/commitdiff
Properly remove empty /usr/share/info/lilypond directory and replace with symlink debian/2.12.3-7
authorDon Armstrong <don@donarmstrong.com>
Tue, 24 Aug 2010 23:35:44 +0000 (16:35 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 24 Aug 2010 23:35:44 +0000 (16:35 -0700)
debian/changelog
debian/lilypond-data.postinst
debian/rules

index f3be69f72abdb4fb4f420cc604bdb9c2970416b7..241c6f9cc95ef782d69e97bd4a66cbd2e7b680dc 100644 (file)
@@ -3,7 +3,8 @@ lilypond (2.12.3-7) unstable; urgency=low
   * Use /dev/stderr instead of /dev/tty (Closes: #574629)
   * Use py_support to require rebuilds when python's API changes (Closes:
     #380855)
-  * Fix broken links in some info documentation
+  * Properly remove empty /usr/share/info/lilypond directory and replace
+    with symlink
 
  -- Don Armstrong <don@debian.org>  Tue, 24 Aug 2010 15:52:59 -0700
 
index f86c19db8cd3f2b24ff0cc9084ecf34293a8b514..2b06f9b76b385a49e3ea234d797da410bbb83faa 100644 (file)
@@ -19,6 +19,13 @@ echo " Running mktexlsr $TEXMFMAIN..."
 mktexlsr $TEXMFMAIN
 
 #DEBHELPER#
-echo
-echo " $pkg_name configuration completed."
-echo " Please read /usr/share/doc/lilypond/README.Debian to get started."
+# echo
+# echo " $pkg_name configuration completed."
+# echo " Please read /usr/share/doc/lilypond/README.Debian to get started."
+
+if [ "$1" = "configure" ]; then
+    if [ -d /usr/share/info/lilypond ] && [ ! -L /usr/share/info/lilypond ] \
+       && rmdir /usr/share/lilypond; then
+       (cd /usr/share/info; ln -s ../doc/lilypond/html/Documentation/user/ lilypond;)
+    fi;
+fi;
\ No newline at end of file
index a481b5d27986b57aecc5fd43c936e3163429bc7d..ac50d8b899cca72ac29b52150cafd620897f08e5 100755 (executable)
@@ -123,16 +123,10 @@ binary-indep: build-doc install
                -type d -empty -delete
        dh_installemacsen
 
-       #find input \( -name '*.*ly' -o -name '*.abc' -o -name '*.tex' -o -name 'TODO' \) ! -regex '.*/out-www/.*' \
-       #       -exec cp -a --parents '{}' $(r_data)/$(d)/examples ';'
        install -m 644 debian/xiao-haizi-guai-guai.ly debian/sakura-sakura.ly \
                $(r_data)/$(d)/examples
        dh_installchangelogs
 
-#      mv $(r_data)/usr/share/lilypond/$(VERSION)/fonts/map/lilypond.map \
-#         $(r_data)/etc/texmf/dvips/lilypond.map
-       rmdir $(CURDIR)/debian/lilypond-doc/usr/share/info/lilypond
-
        dh_link usr/share/lilypond/$(VERSION)/tex \
                        usr/share/texmf/tex/lilypond \
                usr/share/lilypond/$(VERSION)/fonts/source \
@@ -144,9 +138,7 @@ binary-indep: build-doc install
                usr/share/lilypond/$(VERSION)/fonts/type1 \
                        usr/share/texmf/fonts/type1/public/lilypond \
                etc/texmf/dvips/lilypond.map \
-                       usr/share/lilypond/$(VERSION)/dvips/lilypond.map \
-               usr/share/doc/lilypond/ \
-                       usr/share/doc/lilypond/html/Documentation/user
+                       usr/share/lilypond/$(VERSION)/dvips/lilypond.map
 
        dh_pysupport /usr/share/lilypond/${VERSION}/python