lib/Tools/doc
author wenzelm
Tue Jun 25 12:17:19 2013 +0200 (2013-06-25)
changeset 52444 2cfe6656d6d6
parent 52427 9d1cc9a22177
child 62438 42e13a4f52f5
permissions -rwxr-xr-x
slightly improved "isabelle doc" based on Isabelle/Scala;
updated documentation of "isabelle display";
wenzelm@10555
     1
#!/usr/bin/env bash
wenzelm@2332
     2
#
wenzelm@9788
     3
# Author: Markus Wenzel, TU Muenchen
wenzelm@2332
     4
#
wenzelm@2332
     5
# DESCRIPTION: view Isabelle documentation
wenzelm@2332
     6
wenzelm@2332
     7
wenzelm@10511
     8
PRG="$(basename "$0")"
wenzelm@2332
     9
wenzelm@2332
    10
function usage()
wenzelm@2332
    11
{
wenzelm@2332
    12
  echo
wenzelm@52444
    13
  echo "Usage: isabelle $PRG [DOC ...]"
wenzelm@2332
    14
  echo
wenzelm@52444
    15
  echo "  View Isabelle documentation."
wenzelm@2332
    16
  echo
wenzelm@2332
    17
  exit 1
wenzelm@2332
    18
}
wenzelm@2332
    19
wenzelm@2332
    20
function fail()
wenzelm@2332
    21
{
wenzelm@2332
    22
  echo "$1" >&2
wenzelm@2332
    23
  exit 2
wenzelm@2332
    24
}
wenzelm@2332
    25
wenzelm@2332
    26
wenzelm@2332
    27
## args
wenzelm@2332
    28
wenzelm@52444
    29
[ "$#" -eq 1 -a "$1" = "-?" ] && usage
wenzelm@2332
    30
wenzelm@2332
    31
wenzelm@2332
    32
## main
wenzelm@2332
    33
wenzelm@52444
    34
isabelle_admin_build jars || exit $?
wenzelm@32322
    35
wenzelm@52444
    36
"$ISABELLE_TOOL" java isabelle.Doc "$@"
wenzelm@15717
    37