postinst is in lilypond-data 2.18.2-4.1.
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 37 38 | #!/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 dhpython:
if which pycompile >/dev/null 2>&1; then
pycompile -p lilypond-data /usr/share/lilypond/2.18.2/python
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;
|