Check-in [cb0c37e35e]
Overview
SHA1:cb0c37e35efc3aebc392afab59437ce39658e15f
Date: 2011-11-14 04:29:42
User: rkeene
Comment:Updated to ignore created SDKs when looking for created kits during test builds
Timelines: family | ancestors | descendants | both | tcl-sdk-support
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-11-14
05:01
[6f5ce08b75] Added documentation on KitDLL SDK (user: rkeene, tags: tcl-sdk-support)
04:29
[cb0c37e35e] Updated to ignore created SDKs when looking for created kits during test builds (user: rkeene, tags: tcl-sdk-support)
04:23
[2906d8d4b0] Added support for performing post-build actions

Added post-build action "sdk" for building a KitDLL SDK if KitDLL building was requested (user: rkeene, tags: tcl-sdk-support)

Changes

Modified build/test/test from [8772772acc] to [97d02f3024].

199
200
201
202
203
204
205

206
207
208
209

210
211
212
213
214
215
216
...
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
		fi

		# Create Tclkit
		if [ "${kitdll}" = "1" ]; then
			createdkit="libtclkit*.dll libtclkit*.*"
			outputname="${TESTDIR}/kits/libtclkit-${version}-${kit}"
			failoutputname="${TESTDIR}/kits/failed/libtclkit-${version}-${kit}"

		else
			createdkit="tclkit-${version}"
			outputname="${TESTDIR}/kits/tclkit-${version}-${kit}"
			failoutputname="${TESTDIR}/kits/failed/tclkit-${version}-${kit}"

		fi
		buildlog="${outputname}-build.log"
		failbuildlog="${failoutputname}-build.log"
		testresultslog="${outputname}-tests.log"

		if [ ! -f "${outputname}" ]; then
			unset KITCREATOR_PKGS STATICTK STRIP
................................................................................
					cd kitsh/build/kitsh-*/ || exit 1
					make tclsh
					cp tclsh ../../../
				) >> "${buildlog}" 2>&1
			fi

			# Perform wildcard expansion
			createdkit="$(ls -f1 ${createdkit} 2>/dev/null | head -n 1)"

			if [ ! -f "${createdkit}" ]; then
				echo "Failed to create kit ${version}/${kit}" >&2

				failed="${failed} ${version}/${kit}-build"

				touch "${failoutputname}"







>




>







 







|







199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
...
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
		fi

		# Create Tclkit
		if [ "${kitdll}" = "1" ]; then
			createdkit="libtclkit*.dll libtclkit*.*"
			outputname="${TESTDIR}/kits/libtclkit-${version}-${kit}"
			failoutputname="${TESTDIR}/kits/failed/libtclkit-${version}-${kit}"
			sdk="$(echo libtclkit-sdk-*.tar.gz)"
		else
			createdkit="tclkit-${version}"
			outputname="${TESTDIR}/kits/tclkit-${version}-${kit}"
			failoutputname="${TESTDIR}/kits/failed/tclkit-${version}-${kit}"
			sdk=''
		fi
		buildlog="${outputname}-build.log"
		failbuildlog="${failoutputname}-build.log"
		testresultslog="${outputname}-tests.log"

		if [ ! -f "${outputname}" ]; then
			unset KITCREATOR_PKGS STATICTK STRIP
................................................................................
					cd kitsh/build/kitsh-*/ || exit 1
					make tclsh
					cp tclsh ../../../
				) >> "${buildlog}" 2>&1
			fi

			# Perform wildcard expansion
			createdkit="$(ls -f1 ${createdkit} 2>/dev/null | grep -v '\.tar\.gz$' | head -n 1)"

			if [ ! -f "${createdkit}" ]; then
				echo "Failed to create kit ${version}/${kit}" >&2

				failed="${failed} ${version}/${kit}-build"

				touch "${failoutputname}"