From: fred Date: Thu, 9 Jul 1998 23:08:21 +0000 (+0000) Subject: lilypond-1.0.1 X-Git-Tag: release/1.5.59~5904 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5d984c65a05bcf43c7f8b5b97bee692782b56c4d;p=lilypond.git lilypond-1.0.1 --- diff --git a/buildscripts/clean-fonts.sh b/buildscripts/clean-fonts.sh new file mode 100644 index 0000000000..a57dc7fc74 --- /dev/null +++ b/buildscripts/clean-fonts.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +case $# in +0) + WHAT="" ;; +1) + WHAT=$1;; +esac + +# should use kpsepath + +if [ -d /var/lib/texmf ]; then + TEXDIR=/var/lib/texmf +elif [ -d /var/texfonts ]; then + TEXDIR=/var/texfonts +else + TEXDIR=/var/ +fi + +# remove possibly stale .pk/.tfm files +echo> /tmp/cleaning-font-dummy +FILES=`find $TEXDIR -name "feta*$WHAT*tfm" -or -name "feta*$WHAT*pk"` + +echo removing $FILES +rm -f $FILES /tmp/cleaning-font-dummy