]> git.donarmstrong.com Git - lilypond.git/blobdiff - debian/lilypond-data.postrm
Imported Debian patch 2.12.3-1
[lilypond.git] / debian / lilypond-data.postrm
diff --git a/debian/lilypond-data.postrm b/debian/lilypond-data.postrm
new file mode 100644 (file)
index 0000000..53620a0
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# postrm script for the Debian GNU/Linux lilypond package
+#   by Anthony Fok <foka@debian.org>
+#   This is free software; see the GNU General Public Licence
+#   version 2 or later for copying conditions.  There is NO warranty.
+#   Last modified:  Tue, 11 May 1999 11:16:35 -0600
+
+set -e
+
+package=lilypond
+font_supplier=public
+font_typeface=lilypond
+std_VARTEXFONTS=/var/spool/texmf
+
+#DEBHELPER#
+if [ "$1" != purge ]; then
+  VARTEXFONTS=`kpsewhich -expand-var '$VARTEXFONTS'`
+  : ${VARTEXFONTS=$std_VARTEXFONTS}
+fi
+
+case "$1" in
+    upgrade)
+       # Clear out the old TFM and PK files in case the fonts were modified
+       rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
+       rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
+    ;;
+
+    remove)
+       # Clear out the old TFM and PK files in case the fonts were modified
+       rm -rf $VARTEXFONTS/tfm/$font_supplier/$font_typeface
+       rm -rf $VARTEXFONTS/pk/*/$font_supplier/$font_typeface
+    ;;
+
+    failed-upgrade|purge|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+       echo "postrm called with unknown argument \`$1'" >&2
+       exit 0
+    ;;
+esac