Admin/init_components
author blanchet
Mon, 23 Jul 2012 15:32:30 +0200
changeset 49449 aaaec69db3db
parent 49181 1bee47c0c278
child 49463 94c11abc5a52
permissions -rw-r--r--
ensure all calls to "mash" program are synchronous
     1 # -*- shell-script -*- :mode=shellscript:
     2 #
     3 # Author: Florian Haftmann, TU Muenchen
     4 #
     5 # init_components - bash source script to initialize components
     6 # as specified in the Admin directory
     7 
     8 function init_component_liberal
     9 {
    10   local LOCATION="$1"
    11   if [[ -d "${LOCATION}" ]]
    12   then
    13     init_component "${LOCATION}"
    14   else
    15     echo "Warning: no component found in ${LOCATION}" >&2
    16   fi
    17 }
    18 
    19 while { unset REPLY; read -r; test "$?" = 0 -o -n "${REPLY}"; }
    20 do
    21   case "${REPLY}" in
    22     \#* | "") ;;
    23     /*) init_component_liberal "${REPLY}" ;;
    24     *) init_component_liberal "${COMPONENT}/${REPLY}" ;;
    25   esac
    26 done < "${ISABELLE_HOME}/Admin/components"