src/Tools/jEdit/dist-template/lib/Tools/jedit
changeset 34691 f28c014bcbe3
parent 34664 8f5fbe4a80ff
child 34780 d0ff1c3a91ea
equal deleted inserted replaced
34690:e588fe99cd68 34691:f28c014bcbe3
    15   echo "Usage: isabelle $PRG [OPTIONS] [FILES ...]"
    15   echo "Usage: isabelle $PRG [OPTIONS] [FILES ...]"
    16   echo
    16   echo
    17   echo "  Options are:"
    17   echo "  Options are:"
    18   echo "    -J OPTION    add JVM runtime option"
    18   echo "    -J OPTION    add JVM runtime option"
    19   echo "                 (default JEDIT_JAVA_OPTIONS=$JEDIT_JAVA_OPTIONS)"
    19   echo "                 (default JEDIT_JAVA_OPTIONS=$JEDIT_JAVA_OPTIONS)"
       
    20   echo "    -d           enable debugger"
    20   echo "    -j OPTION    add jEdit runtime option"
    21   echo "    -j OPTION    add jEdit runtime option"
    21   echo "                 (default JEDIT_OPTIONS=$JEDIT_OPTIONS)"
    22   echo "                 (default JEDIT_OPTIONS=$JEDIT_OPTIONS)"
    22   echo "    -l NAME      logic image name (default ISABELLE_LOGIC=$ISABELLE_LOGIC)"
    23   echo "    -l NAME      logic image name (default ISABELLE_LOGIC=$ISABELLE_LOGIC)"
    23   echo "    -m MODE      add print mode for output"
    24   echo "    -m MODE      add print mode for output"
    24   echo
    25   echo
    43 JEDIT_PRINT_MODE=""
    44 JEDIT_PRINT_MODE=""
    44 
    45 
    45 declare -a JAVA_OPTIONS; eval "JAVA_OPTIONS=($JEDIT_JAVA_OPTIONS)"
    46 declare -a JAVA_OPTIONS; eval "JAVA_OPTIONS=($JEDIT_JAVA_OPTIONS)"
    46 declare -a OPTIONS; eval "OPTIONS=($JEDIT_OPTIONS)"
    47 declare -a OPTIONS; eval "OPTIONS=($JEDIT_OPTIONS)"
    47 
    48 
    48 while getopts "J:j:l:m:" OPT
    49 while getopts "J:dj:l:m:" OPT
    49 do
    50 do
    50   case "$OPT" in
    51   case "$OPT" in
    51     J)
    52     J)
    52       JAVA_OPTIONS["${#JAVA_OPTIONS[@]}"]="$OPTARG"
    53       JAVA_OPTIONS["${#JAVA_OPTIONS[@]}"]="$OPTARG"
       
    54       ;;
       
    55     d)
       
    56       JAVA_OPTIONS["${#JAVA_OPTIONS[@]}"]="-Xdebug"
       
    57       JAVA_OPTIONS["${#JAVA_OPTIONS[@]}"]="-Xrunjdwp:transport=dt_socket,server=y,suspend=n"
    53       ;;
    58       ;;
    54     j)
    59     j)
    55       OPTIONS["${#OPTIONS[@]}"]="$OPTARG"
    60       OPTIONS["${#OPTIONS[@]}"]="$OPTARG"
    56       ;;
    61       ;;
    57     l)
    62     l)