lilypond-1.0.16
[lilypond.git] / buildscripts / clean-fonts.sh
blob597efa90327c4190b95ee21b06e134730ce00e3d
1 #!/bin/sh
3 case $# in
4 0)
5 WHAT="" ;;
6 1)
7 WHAT=$1;;
8 esac
10 # should use kpsepath
12 if [ -d /var/lib/texmf ]; then
13 TEXDIR=/var/lib/texmf
14 elif [ -d /var/texfonts ]; then
15 TEXDIR=/var/texfonts
16 else
17 TEXDIR=/var/
20 # remove possibly stale .pk/.tfm files
21 echo> /tmp/cleaning-font-dummy
22 FILES=`find . $TEXDIR -name "feta*$WHAT*tfm" -or -name "feta*$WHAT*pk"`
24 echo removing $FILES
25 rm -f $FILES /tmp/cleaning-font-dummy