lib/Tools/document
changeset 52746 eec610972763
parent 51822 7aebe43d6a14
child 52747 2130b5c4b287
equal deleted inserted replaced
52745:821ce370b7fc 52746:eec610972763
    13   echo "Usage: isabelle $PRG [OPTIONS] [DIR]"
    13   echo "Usage: isabelle $PRG [OPTIONS] [DIR]"
    14   echo
    14   echo
    15   echo "  Options are:"
    15   echo "  Options are:"
    16   echo "    -c           cleanup -- be aggressive in removing old stuff"
    16   echo "    -c           cleanup -- be aggressive in removing old stuff"
    17   echo "    -n NAME      specify document name (default 'document')"
    17   echo "    -n NAME      specify document name (default 'document')"
    18   echo "    -o FORMAT    specify output format: dvi (default), dvi.gz, ps, ps.gz, pdf"
    18   echo "    -o FORMAT    specify output format: pdf (default), dvi"
    19   echo "    -t TAGS      specify tagged region markup"
    19   echo "    -t TAGS      specify tagged region markup"
    20   echo
    20   echo
    21   echo "  Prepare the theory session document in DIR (default 'document')"
    21   echo "  Prepare the theory session document in DIR (default 'document')"
    22   echo "  producing the specified output format."
    22   echo "  producing the specified output format."
    23   echo
    23   echo
    35 
    35 
    36 # options
    36 # options
    37 
    37 
    38 CLEAN=""
    38 CLEAN=""
    39 NAME="document"
    39 NAME="document"
    40 OUTFORMAT=dvi
    40 OUTFORMAT=pdf
    41 declare -a TAGS=()
    41 declare -a TAGS=()
    42 
    42 
    43 while getopts "cn:o:t:" OPT
    43 while getopts "cn:o:t:" OPT
    44 do
    44 do
    45   case "$OPT" in
    45   case "$OPT" in
    75 ## main
    75 ## main
    76 
    76 
    77 # check format
    77 # check format
    78 
    78 
    79 case "$OUTFORMAT" in
    79 case "$OUTFORMAT" in
    80   dvi | dvi.gz | ps | ps.gz | pdf)
    80   pdf | dvi)
    81     ;;
    81     ;;
    82   *)
    82   *)
    83     fail "Bad output format '$OUTFORMAT'"
    83     fail "Bad output format '$OUTFORMAT'"
    84     ;;
    84     ;;
    85 esac
    85 esac