#!/bin/bash -e # # postrm script for the Debian GNU/Linux lilypond package # by Anthony Fok # This is free software; see the GNU General Public Licence # version 2 or later for copying conditions. There is NO warranty. # Last modified: Mon, 10 Nov 1997 22:44:37 -0700 package=lilypond font_supplier=public font_typeface=lilypond std_TEXMF=/usr/lib/texmf if [ "`which kpsetool`" ]; then TEXMF=`kpsetool -v '$TEXMF'` fi : ${TEXMF:=$std_TEXMF} case "$1" in remove) if [ "`kpsetool -w tex lilyponddefs.tex 2>/dev/null`" -a "`which texhash`" ]; then texhash fi ;; upgrade) # Clear out the old TFM and PK files in case the fonts were modified : ${MAKETEXDIR=$TEXMF/maketex} test -r $MAKETEXDIR/maketex.site && . $MAKETEXDIR/maketex.site : ${MT_DESTROOT=$TEXMF/fonts} rm -rf $MT_DESTROOT/tfm/$font_supplier/$font_typeface rm -rf $MT_DESTROOT/pk/*/$font_supplier/$font_typeface ;; purge) : ${MAKETEXDIR=$TEXMF/maketex} test -r $MAKETEXDIR/maketex.site && . $MAKETEXDIR/maketex.site : ${MT_DESTROOT=$TEXMF/fonts} rm -rf $MT_DESTROOT/tfm/$font_supplier/$font_typeface rm -rf $MT_DESTROOT/pk/*/$font_supplier/$font_typeface ;; failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 ;; esac