]> git.donarmstrong.com Git - lilypond.git/blob - debian/lilypond-data.postrm
apply Julian's patch to fix install-info warnings
[lilypond.git] / debian / lilypond-data.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:  Tue, 11 May 1999 11:16:35 -0600
8
9 set -e
10
11 package=lilypond
12 font_supplier=public
13 font_typeface=lilypond
14 std_VARTEXFONTS=/var/spool/texmf
15
16 #DEBHELPER#
17 if [ "$1" != purge ]; then
18   VARTEXFONTS=`kpsewhich -expand-var '$VARTEXFONTS'`
19   : ${VARTEXFONTS=$std_VARTEXFONTS}
20 fi
21
22 case "$1" in
23     upgrade)
24         # Clear out the old TFM and PK files in case the fonts were modified
25         rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
26         rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
27     ;;
28
29     remove)
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     failed-upgrade|purge|abort-install|abort-upgrade|disappear)
36     ;;
37
38     *)
39         echo "postrm called with unknown argument \`$1'" >&2
40         exit 0
41     ;;
42 esac