This file is indexed.

postinst is in lilypond-data 2.14.2-2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# postinst script for the Debian GNU/Linux lilypond-data package
#   by Anthony Fok <foka@debian.org>
#   Initial release:  Sun, 26 Oct 1997 03:23:00 -0700
#     Last modified:  Thu, 17 Jun 2004 11:40:36 +0800

set -e

package=lilypond		# This is used for filenames!  Don't change it!
pkg_name="GNU LilyPond"

std_TEXMFMAIN=/usr/share/texmf	# Debian's standard $TEXMFMAIN

TEXMFMAIN=`kpsewhich -expand-var '$TEXMFMAIN'`
: ${TEXMFMAIN:=$std_TEXMFMAIN}

echo " Running mktexlsr $TEXMFMAIN..."
mktexlsr $TEXMFMAIN

# Automatically added by dh_pysupport
if which update-python-modules >/dev/null 2>&1; then
	update-python-modules  lilypond-data.private
fi
# End automatically added section

# 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;