now uses ISABELLE_INSTALLFONTS;
authorwenzelm
Tue, 04 Feb 1997 08:59:17 +0100
changeset 2578 cc768a16ef65
parent 2577 eec6bdf53809
child 2579 4af1023fc6bf
now uses ISABELLE_INSTALLFONTS;
lib/Tools/installfonts
--- a/lib/Tools/installfonts	Tue Feb 04 08:58:47 1997 +0100
+++ b/lib/Tools/installfonts	Tue Feb 04 08:59:17 1997 +0100
@@ -19,16 +19,25 @@
 }
 
 
+## check for isabelle fonts
+
+function checkfonts()
+{
+  RESULT=$(xlsfonts -fn "-isabelle-*" 2>&1) || return 1
+
+  case "$RESULT" in
+    xlsfonts:*)
+      return 1
+      ;;
+  esac
+
+  return 0
+}
+
+
 ## main
 
 [ $# -ne 0 ] && usage
 
-
-RESULT=$(xlsfonts -fn "-isabelle-*" 2>&1) || exit 1
-
-case "$RESULT" in
-  xlsfonts:*)
-    xset fp+ $ISABELLE_HOME/lib/fonts
-    xset fp rehash
-    ;;
-esac
+checkfonts || eval $ISABELLE_INSTALLFONTS
+checkfonts || echo "WARNING: Isabelle fonts probably not installed correctly!" >&2