]> git.donarmstrong.com Git - lilypond.git/blob - debian/postinst
release: 1.1.33
[lilypond.git] / debian / postinst
1 #!/bin/sh
2 #
3 # postinst script for the Debian GNU/Linux lilypond package
4 #
5 #   by Anthony Fok <foka@debian.org>
6 #   Initial release:  Sun, 26 Oct 1997 03:23:00 -0700
7 #     Last modified:  Wed, 11 Nov 1998 22:59:49 -0700
8
9 set -e
10
11 package=lilypond                # This is used for filenames!  Don't change it!
12 pkg_name="GNU LilyPond"
13
14 std_TEXMFMAIN=/usr/lib/texmf    # Debian's standard $TEXMFMAIN
15
16 TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'`
17 : ${TEXMFMAIN:=$std_TEXMFMAIN}
18
19 echo " Running /usr/bin/mktexlsr ..."
20 /usr/bin/mktexlsr
21
22 #DEBHELPER#
23
24 # If we are the last package to use the old /usr/lib/texmf/doc,
25 # we will create the symlink to /usr/doc/texmf.  :-)
26 if rmdir /usr/lib/texmf/doc >/dev/null 2>&1
27 then
28     ln -s /usr/doc/texmf /usr/lib/texmf/doc
29 fi
30
31 echo
32 echo " $pkg_name configuration completed."
33 echo " Please read /usr/doc/$package/README.Debian to get started."