]> git.donarmstrong.com Git - lilypond.git/blobdiff - debian/lilypond-data.postinst
apply Julian's patch to fix install-info warnings
[lilypond.git] / debian / lilypond-data.postinst
index 50a9e72950aa088a8db336ec45e85a9985385c3b..18394fdb7c6dff6994d116a52c6c22c6d8dfc138 100644 (file)
@@ -12,13 +12,20 @@ pkg_name="GNU LilyPond"
 
 std_TEXMFMAIN=/usr/share/texmf # Debian's standard $TEXMFMAIN
 
-TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'`
+TEXMFMAIN=`kpsewhich -expand-var '$TEXMFMAIN'`
 : ${TEXMFMAIN:=$std_TEXMFMAIN}
 
-echo " Running /usr/bin/mktexlsr $TEXMFMAIN..."
-/usr/bin/mktexlsr $TEXMFMAIN
+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;