lib/Tools/doc
author nipkow
Fri, 08 Aug 2014 08:26:32 +0200
changeset 57817 dfebc374bd89
parent 52444 2cfe6656d6d6
child 62438 42e13a4f52f5
permissions -rwxr-xr-x
tuned
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10555
2323ec838401 /usr/bin/env bash;
wenzelm
parents: 10511
diff changeset
     1
#!/usr/bin/env bash
2332
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
     2
#
9788
wenzelm
parents: 8130
diff changeset
     3
# Author: Markus Wenzel, TU Muenchen
2332
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
     4
#
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: view Isabelle documentation
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
     6
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
     7
10511
wenzelm
parents: 9788
diff changeset
     8
PRG="$(basename "$0")"
2332
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
     9
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    10
function usage()
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    11
{
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    12
  echo
52444
2cfe6656d6d6 slightly improved "isabelle doc" based on Isabelle/Scala;
wenzelm
parents: 52427
diff changeset
    13
  echo "Usage: isabelle $PRG [DOC ...]"
2332
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    14
  echo
52444
2cfe6656d6d6 slightly improved "isabelle doc" based on Isabelle/Scala;
wenzelm
parents: 52427
diff changeset
    15
  echo "  View Isabelle documentation."
2332
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    16
  echo
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    17
  exit 1
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    18
}
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    19
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    20
function fail()
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    21
{
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    22
  echo "$1" >&2
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    23
  exit 2
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    24
}
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    25
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    26
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    27
## args
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    28
52444
2cfe6656d6d6 slightly improved "isabelle doc" based on Isabelle/Scala;
wenzelm
parents: 52427
diff changeset
    29
[ "$#" -eq 1 -a "$1" = "-?" ] && usage
2332
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    30
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    31
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    32
## main
ae592411c199 doc: view Isabelle documentation;
wenzelm
parents:
diff changeset
    33
52444
2cfe6656d6d6 slightly improved "isabelle doc" based on Isabelle/Scala;
wenzelm
parents: 52427
diff changeset
    34
isabelle_admin_build jars || exit $?
32322
45cb4a86eca2 change IFS only locally -- thanks to bash arrays;
wenzelm
parents: 29143
diff changeset
    35
52444
2cfe6656d6d6 slightly improved "isabelle doc" based on Isabelle/Scala;
wenzelm
parents: 52427
diff changeset
    36
"$ISABELLE_TOOL" java isabelle.Doc "$@"
15717
541e50adfc73 *** MESSAGE REFERS TO PREVIOUS VERSION ***
wenzelm
parents: 15703
diff changeset
    37