lilypond-1.1.13
[lilypond.git] / debian / postrm
blob80e1d36c753ed7e0214cbeed584b2caa4e8ddf5d
1 #!/bin/sh
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: Fri, 14 Aug 1998 00:07:07 -0600
9 set -e
11 package=lilypond
12 font_supplier=public
13 font_typeface=lilypond
14 std_TEXMFMAIN=/usr/lib/texmf
15 std_VARTEXFONTS=/var/spool/texmf
17 #DEBHELPER#
19 TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'`
20 : ${TEXMFMAIN:=$std_TEXMFMAIN}
21 VARTEXFONTS=`/usr/bin/kpsewhich -expand-var '$VARTEXFONTS'`
22 : ${VARTEXFONTS=$std_VARTEXFONTS}
24 case "$1" in
25 upgrade)
26 # Clear out the old TFM and PK files in case the fonts were modified
27 rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
28 rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
31 remove|purge)
32 # Clear out the old TFM and PK files in case the fonts were modified
33 rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
34 rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
35 /usr/bin/mktexlsr
38 failed-upgrade|abort-install|abort-upgrade|disappear)
42 echo "postrm called with unknown argument \`$1'" >&2
43 exit 0
45 esac