]> git.donarmstrong.com Git - lilypond.git/blob - debian/postrm
e0dd95cfbcdbe0e1d86493984dea4038651f43d5
[lilypond.git] / debian / postrm
1 #!/bin/sh
2 #
3 # postrm script for the Debian GNU/Linux lilypond package
4 #   by Anthony Fok <foka@debian.org>
5 #   This is free software; see the GNU General Public Licence
6 #   version 2 or later for copying conditions.  There is NO warranty.
7 #   Last modified:  Wed, 22 Apr 1998 05:55:58 -0600
8
9 set -e
10
11 package=lilypond
12 font_supplier=public
13 font_typeface=lilypond
14 std_TEXMFMAIN=/usr/lib/texmf
15 std_VARTEXFONTS=/var/spool/texmf
16
17 #DEBHELPER#
18
19 TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'`
20 : ${TEXMFMAIN:=$std_TEXMFMAIN}
21 VARTEXFONTS=`/usr/bin/kpsewhich -expand-var '$VARTEXFONTS'`
22 : ${VARTEXFONTS=$std_VARTEXFONTS}
23
24 case "$1" in
25     remove)
26         /usr/bin/mktexlsr
27     ;;
28
29     upgrade)
30         # Clear out the old TFM and PK files in case the fonts were modified
31         rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
32         rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
33     ;;
34
35     purge)
36         # Clear out the old TFM and PK files in case the fonts were modified
37         rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
38         rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
39         /usr/bin/mktexlsr
40     ;;
41
42     failed-upgrade|abort-install|abort-upgrade|disappear)
43     ;;
44
45     *)
46         echo "postrm called with unknown argument \`$1'" >&2
47         exit 0
48     ;;
49 esac