Admin/init_components
author blanchet
Fri, 20 Jul 2012 22:19:46 +0200
changeset 48394 82fc8c956cdc
parent 48166 1bee47c0c278
child 48448 94c11abc5a52
permissions -rw-r--r--
fixed various issues with MaSh's file handling + tune output + generate local facts again + handle nameless facts gracefully

# -*- shell-script -*- :mode=shellscript:
#
# Author: Florian Haftmann, TU Muenchen
#
# init_components - bash source script to initialize components
# as specified in the Admin directory

function init_component_liberal
{
  local LOCATION="$1"
  if [[ -d "${LOCATION}" ]]
  then
    init_component "${LOCATION}"
  else
    echo "Warning: no component found in ${LOCATION}" >&2
  fi
}

while { unset REPLY; read -r; test "$?" = 0 -o -n "${REPLY}"; }
do
  case "${REPLY}" in
    \#* | "") ;;
    /*) init_component_liberal "${REPLY}" ;;
    *) init_component_liberal "${COMPONENT}/${REPLY}" ;;
  esac
done < "${ISABELLE_HOME}/Admin/components"