File: postinst

package info (click to toggle)
pmx 1.3.8-3
  • links: PTS
  • area: contrib
  • in suites: slink
  • size: 1,376 kB
  • ctags: 905
  • sloc: sh: 115; makefile: 103; sed: 4
file content (25 lines) | stat: -rw-r--r-- 725 bytes parent folder | download
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
#!/bin/sh
#
# postinst script for the Debian GNU/Linux pmx package
#   by Anthony Fok <foka@debian.org>
#   This is free software; see the GNU General Public Licence
#   version 2 or later for copying conditions.  There is NO warranty.
#   Last modified:  Wed, 11 Nov 1998 22:34:25 -0700

set -e

std_TEXMFMAIN=/usr/lib/texmf

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

TEXMF='!!$TEXMFMAIN' $TEXMFMAIN/web2c/mktexupd $TEXMFMAIN/tex/musixtex/pmx pmx.tex

#DEBHELPER#

# If we are the last package to use the old /usr/lib/texmf/doc,
# we will create the symlink to /usr/doc/texmf.  :-)
if rmdir /usr/lib/texmf/doc >/dev/null 2>&1
then
    ln -s /usr/doc/texmf /usr/lib/texmf/doc
fi