lib/scripts/getfunctions
changeset 66667 2e580fcf6522
parent 63994 18cbe1b8d859
child 69134 a142ec271d83
equal deleted inserted replaced
66666:1a620647285c 66667:2e580fcf6522
    68 export -f isabelle_scala
    68 export -f isabelle_scala
    69 
    69 
    70 #classpath
    70 #classpath
    71 function classpath ()
    71 function classpath ()
    72 {
    72 {
       
    73   local X=""
    73   for X in "$@"
    74   for X in "$@"
    74   do
    75   do
    75     if [ -z "$ISABELLE_CLASSPATH" ]; then
    76     if [ -z "$ISABELLE_CLASSPATH" ]; then
    76       ISABELLE_CLASSPATH="$X"
    77       ISABELLE_CLASSPATH="$X"
    77     else
    78     else
    96 #arrays
    97 #arrays
    97 function splitarray ()
    98 function splitarray ()
    98 {
    99 {
    99   SPLITARRAY=()
   100   SPLITARRAY=()
   100   local IFS="$1"; shift
   101   local IFS="$1"; shift
       
   102   local X=""
   101   for X in $*
   103   for X in $*
   102   do
   104   do
   103     SPLITARRAY["${#SPLITARRAY[@]}"]="$X"
   105     SPLITARRAY["${#SPLITARRAY[@]}"]="$X"
   104   done
   106   done
   105 }
   107 }
   147 export -f init_component
   149 export -f init_component
   148 
   150 
   149 #init component forest
   151 #init component forest
   150 function init_components ()
   152 function init_components ()
   151 {
   153 {
       
   154   local REPLY=""
   152   local BASE="$1"
   155   local BASE="$1"
   153   local CATALOG="$2"
   156   local CATALOG="$2"
   154   local COMPONENT=""
   157   local COMPONENT=""
   155   local -a COMPONENTS=()
   158   local -a COMPONENTS=()
   156 
   159