lib/Tools/installfonts
author wenzelm
Mon Dec 02 18:21:50 1996 +0100 (1996-12-02)
changeset 2297 efcabc6df91a
child 2311 69c51db9481f
permissions -rwxr-xr-x
installfonts: install Isabelle symbol fonts.
wenzelm@2297
     1
#!/bin/bash
wenzelm@2297
     2
#
wenzelm@2297
     3
# DESCRIPTION: install Isabelle symbol fonts
wenzelm@2297
     4
#
wenzelm@2297
     5
wenzelm@2297
     6
PRG=$(basename $0)
wenzelm@2297
     7
wenzelm@2297
     8
function usage()
wenzelm@2297
     9
{
wenzelm@2297
    10
  echo
wenzelm@2297
    11
  echo "Usage: $PRG"
wenzelm@2297
    12
  echo
wenzelm@2297
    13
  echo "  Install the Isabelle symbol fonts into your X11 server."
wenzelm@2297
    14
  echo "  (May be savely called repeatedly.)"
wenzelm@2297
    15
  echo
wenzelm@2297
    16
  exit 1
wenzelm@2297
    17
}
wenzelm@2297
    18
wenzelm@2297
    19
wenzelm@2297
    20
## main
wenzelm@2297
    21
wenzelm@2297
    22
[ $# -ne 0 ] && usage
wenzelm@2297
    23
wenzelm@2297
    24
wenzelm@2297
    25
RESULT=$(xlsfonts -fn "-isabelle-*" 2>&1)
wenzelm@2297
    26
wenzelm@2297
    27
case "$RESULT" in
wenzelm@2297
    28
  xlsfonts:*)
wenzelm@2297
    29
    xset fp+ $ISABELLE_HOME/lib/fonts
wenzelm@2297
    30
    xset fp rehash
wenzelm@2297
    31
    ;;
wenzelm@2297
    32
esac