]> git.donarmstrong.com Git - lilypond.git/blobdiff - debian/lilypond-data.postinst
Properly remove empty /usr/share/info/lilypond directory and replace with symlink
[lilypond.git] / debian / lilypond-data.postinst
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