# HG changeset patch # User wenzelm # Date 1441975985 -7200 # Node ID da900891ee06d8acd6f39f336e435529abf52726 # Parent ea6a4c8bc722906693357292a2d3b0b293a155f4 more robust init_components: test run of polyml executable on windows appears to disrupt stdin stream of cygwin; diff -r ea6a4c8bc722 -r da900891ee06 lib/scripts/getsettings --- a/lib/scripts/getsettings Fri Sep 11 17:57:34 2015 +0200 +++ b/lib/scripts/getsettings Fri Sep 11 14:53:05 2015 +0200 @@ -240,21 +240,29 @@ { local BASE="$1" local CATALOG="$2" + local COMPONENT="" + local -a COMPONENTS=() if [ ! -f "$CATALOG" ]; then echo >&2 "Bad component catalog file: \"$CATALOG\"" exit 2 fi + { while { unset REPLY; read -r; test "$?" = 0 -o -n "$REPLY"; } do case "$REPLY" in \#* | "") ;; - /*) init_component "$REPLY" ;; - *) init_component "$BASE/$REPLY" ;; + /*) COMPONENTS["${#COMPONENTS[@]}"]="$REPLY" ;; + *) COMPONENTS["${#COMPONENTS[@]}"]="$BASE/$REPLY" ;; esac done } < "$CATALOG" + + for COMPONENT in "${COMPONENTS[@]}" + do + init_component "$COMPONENT" + done } #main components