Diff

Differences From Artifact [7d1b345fc4]:

To Artifact [00afc10ef6]:


   157    157   	if echo 'exit 0' | "${testsh}" >/dev/null 2>/dev/null; then
   158    158   		TCLSH_NATIVE="${testsh}"
   159    159   
   160    160   		break
   161    161   	fi
   162    162   done
   163    163   export TCLSH_NATIVE
          164  +
          165  +# Verify that each component is happy with the environment
          166  +validatefailed="0"
          167  +for pkg in tcl tclvfs zlib ${KITCREATOR_PKGS} kitsh; do
          168  +	failed='0'
          169  +	if [ -f "${pkg}/.success" ]; then
          170  +		continue
          171  +	fi
          172  +
          173  +	if [ -x "${pkg}/validate.sh" ]; then
          174  +		(
          175  +			cd "${pkg}" >/dev/null 2>/dev/null || exit 1
          176  +
          177  +			./validate.sh 3>&1 4>&2 > build.log 2>&1 || exit 1
          178  +		) || failed="1"
          179  +
          180  +		if [ "${failed}" = '1' ]; then
          181  +			echo "Failed pre-requisite check for ${pkg}" >&2
          182  +
          183  +			validatefailed='1'
          184  +		fi
          185  +	fi
          186  +done
          187  +
          188  +if [ "${validatefailed}" = '1' ]; then
          189  +	exit 1
          190  +fi
   164    191   
   165    192   # Do build
   166    193   failedpkgs=""
   167    194   buildfailed="0"
   168    195   for pkg in tcl tclvfs zlib ${KITCREATOR_PKGS} kitsh; do
   169    196   	failed="0"
   170    197   	if [ -f "${pkg}/.success" ]; then