release commit
[lilypond.git] / debian / postrm
bloba6461fb272d118b87c74dd2be81cfc46db987c70
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: Tue, 11 May 1999 11:16:35 -0600
9 set -e
11 package=lilypond
12 font_supplier=public
13 font_typeface=lilypond
14 std_TEXMFMAIN=/usr/share/texmf
15 std_VARTEXFONTS=/var/spool/texmf
17 #DEBHELPER#
18 TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'`
19 : ${TEXMFMAIN:=$std_TEXMFMAIN}
20 VARTEXFONTS=`/usr/bin/kpsewhich -expand-var '$VARTEXFONTS'`
21 : ${VARTEXFONTS=$std_VARTEXFONTS}
23 case "$1" in
24 upgrade)
25 # Clear out the old TFM and PK files in case the fonts were modified
26 rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
27 rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
30 remove|purge)
31 # Clear out the old TFM and PK files in case the fonts were modified
32 rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
33 rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
36 failed-upgrade|abort-install|abort-upgrade|disappear)
40 echo "postrm called with unknown argument \`$1'" >&2
41 exit 0
43 esac