]> git.donarmstrong.com Git - lilypond.git/blob - debian/lilypond-data.postinst
Properly remove empty /usr/share/info/lilypond directory and replace with symlink
[lilypond.git] / debian / lilypond-data.postinst
1 #!/bin/sh
2 #
3 # postinst script for the Debian GNU/Linux lilypond-data package
4 #   by Anthony Fok <foka@debian.org>
5 #   Initial release:  Sun, 26 Oct 1997 03:23:00 -0700
6 #     Last modified:  Thu, 17 Jun 2004 11:40:36 +0800
7
8 set -e
9
10 package=lilypond                # This is used for filenames!  Don't change it!
11 pkg_name="GNU LilyPond"
12
13 std_TEXMFMAIN=/usr/share/texmf  # Debian's standard $TEXMFMAIN
14
15 TEXMFMAIN=`kpsewhich -expand-var '$TEXMFMAIN'`
16 : ${TEXMFMAIN:=$std_TEXMFMAIN}
17
18 echo " Running mktexlsr $TEXMFMAIN..."
19 mktexlsr $TEXMFMAIN
20
21 #DEBHELPER#
22 # echo
23 # echo " $pkg_name configuration completed."
24 # echo " Please read /usr/share/doc/lilypond/README.Debian to get started."
25
26 if [ "$1" = "configure" ]; then
27     if [ -d /usr/share/info/lilypond ] && [ ! -L /usr/share/info/lilypond ] \
28         && rmdir /usr/share/lilypond; then
29         (cd /usr/share/info; ln -s ../doc/lilypond/html/Documentation/user/ lilypond;)
30     fi;
31 fi;