]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.1
authorfred <fred>
Thu, 9 Jul 1998 23:08:21 +0000 (23:08 +0000)
committerfred <fred>
Thu, 9 Jul 1998 23:08:21 +0000 (23:08 +0000)
buildscripts/clean-fonts.sh [new file with mode: 0644]

diff --git a/buildscripts/clean-fonts.sh b/buildscripts/clean-fonts.sh
new file mode 100644 (file)
index 0000000..a57dc7f
--- /dev/null
@@ -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