Check-in [fbd2f87d32]
Overview
Comment:Updated to allow modules to do pre-build validation of the environment
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: fbd2f87d3203e9acdf0753de0b6643384e416eac
User & Date: rkeene on 2016-04-08 14:46:05
Other Links: manifest | tags
Context
2016-04-08
14:54
Better check for patch command check-in: 9ff44d4252 user: rkeene tags: trunk
14:46
Updated to allow modules to do pre-build validation of the environment check-in: fbd2f87d32 user: rkeene tags: trunk
14:30
Updated to use "openssl dgst" instead of just "openssl <hashName>" for compatability with older versions of OpenSSL check-in: 049a34d925 user: rkeene tags: trunk
Changes

Modified kitcreator from [7d1b345fc4] to [00afc10ef6].

157
158
159
160
161
162
163



























164
165
166
167
168
169
170
	if echo 'exit 0' | "${testsh}" >/dev/null 2>/dev/null; then
		TCLSH_NATIVE="${testsh}"

		break
	fi
done
export TCLSH_NATIVE




























# Do build
failedpkgs=""
buildfailed="0"
for pkg in tcl tclvfs zlib ${KITCREATOR_PKGS} kitsh; do
	failed="0"
	if [ -f "${pkg}/.success" ]; then







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
	if echo 'exit 0' | "${testsh}" >/dev/null 2>/dev/null; then
		TCLSH_NATIVE="${testsh}"

		break
	fi
done
export TCLSH_NATIVE

# Verify that each component is happy with the environment
validatefailed="0"
for pkg in tcl tclvfs zlib ${KITCREATOR_PKGS} kitsh; do
	failed='0'
	if [ -f "${pkg}/.success" ]; then
		continue
	fi

	if [ -x "${pkg}/validate.sh" ]; then
		(
			cd "${pkg}" >/dev/null 2>/dev/null || exit 1

			./validate.sh 3>&1 4>&2 > build.log 2>&1 || exit 1
		) || failed="1"

		if [ "${failed}" = '1' ]; then
			echo "Failed pre-requisite check for ${pkg}" >&2

			validatefailed='1'
		fi
	fi
done

if [ "${validatefailed}" = '1' ]; then
	exit 1
fi

# Do build
failedpkgs=""
buildfailed="0"
for pkg in tcl tclvfs zlib ${KITCREATOR_PKGS} kitsh; do
	failed="0"
	if [ -f "${pkg}/.success" ]; then

Added tcl/validate.sh version [4a474661c0].





















>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env bash

if [ ! -x "$(which patch 2>/dev/null)" ]; then
	echo "No \"patch\" command."
	echo "No \"patch\" command." >&4

	exit 1
fi

exit 0