Admin/init_components
changeset 48152 f06697f776b0
parent 48151 a80595d4f850
child 48154 2709937c7430
--- a/Admin/init_components	Tue Jun 26 22:23:28 2012 +0200
+++ b/Admin/init_components	Tue Jun 26 22:25:36 2012 +0200
@@ -16,11 +16,14 @@
   fi
 }
 
-while { unset REPLY; read -r; test "$?" = 0 -o -n "${REPLY}"; }
+for COMPONENTS_FILE in "${ISABELLE_HOME}/Admin/components" "${ISABELLE_HOME}/Admin/components.${ML_PLATFORM}"
 do
-  case "${REPLY}" in
-    \#* | "") ;;
-    /*) init_component_liberal "${REPLY}" ;;
-    *) init_component_liberal "${COMPONENT}/${REPLY}" ;;
-  esac
-done < "${ISABELLE_HOME}/Admin/components"
+  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 < "${COMPONENTS_FILE}"
+done