Check-in [b62421e50c]
Overview
SHA1:b62421e50c30555a840bba5744c107e1ac602fb1
Date: 2013-07-04 02:20:15
User: rkeene
Comment:Updated to delete only archive files in the same directory as DLLs
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2013-07-05
20:49
[85d560e68a] Updated to not use 32-bit time_t on 64-bit Windows (user: rkeene, tags: trunk)
2013-07-04
02:20
[b62421e50c] Updated to delete only archive files in the same directory as DLLs (user: rkeene, tags: trunk)
2013-07-03
05:09
[ccebee74a5] Made win32 and linux-i386 tests runnable (user: rkeene, tags: trunk)
Changes

Modified tcl/build.sh from [a2038d7121] to [21af131d5c].

262
263
264
265
266
267
268

269

















270
271
272
273
274
275
276
		mkdir "${OUTDIR}/lib" || exit 1
		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
		rm -rf "${OUTDIR}/lib/pkgconfig"
		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null

		# Remove archive files that are just stubs for other files

		find "${INSTDIR}" -name '*.a' ! -name '*stub*' | grep -v '/libtcl[0-9\.][0-9\.]*\.a$' | xargs rm -f >/dev/null 2>/dev/null


















		# Clean up packages that are not needed
		if [ -n "${KITCREATOR_MINBUILD}" ]; then
			find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
		fi

		# Clean up encodings







>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
		mkdir "${OUTDIR}/lib" || exit 1
		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
		rm -rf "${OUTDIR}/lib/pkgconfig"
		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null

		# Remove archive files that are just stubs for other files
		echo "Deleting these files from install directory:"
		find "${INSTDIR}" -name '*.a' ! -name '*stub*' | while IFS='' read -r filename; do
			dirname="$(dirname "${filename}")"

			delete='0'
			for dll in "${dirname}"/*.dll; do
				if [ -f "${dll}" ]; then
					delete='1'

					break
				fi
			done

			if [ "${delete}" = '1' ]; then
				echo "        ${filename}"

				rm -f "${filename}"
			fi
		done

		# Clean up packages that are not needed
		if [ -n "${KITCREATOR_MINBUILD}" ]; then
			find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
		fi

		# Clean up encodings