Diff

Differences From Artifact [a2038d7121]:

To Artifact [21af131d5c]:


   262    262   		mkdir "${OUTDIR}/lib" || exit 1
   263    263   		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
   264    264   		rm -rf "${OUTDIR}/lib/pkgconfig"
   265    265   		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
   266    266   		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null
   267    267   
   268    268   		# Remove archive files that are just stubs for other files
   269         -		find "${INSTDIR}" -name '*.a' ! -name '*stub*' | grep -v '/libtcl[0-9\.][0-9\.]*\.a$' | xargs rm -f >/dev/null 2>/dev/null
          269  +		echo "Deleting these files from install directory:"
          270  +		find "${INSTDIR}" -name '*.a' ! -name '*stub*' | while IFS='' read -r filename; do
          271  +			dirname="$(dirname "${filename}")"
          272  +
          273  +			delete='0'
          274  +			for dll in "${dirname}"/*.dll; do
          275  +				if [ -f "${dll}" ]; then
          276  +					delete='1'
          277  +
          278  +					break
          279  +				fi
          280  +			done
          281  +
          282  +			if [ "${delete}" = '1' ]; then
          283  +				echo "        ${filename}"
          284  +
          285  +				rm -f "${filename}"
          286  +			fi
          287  +		done
   270    288   
   271    289   		# Clean up packages that are not needed
   272    290   		if [ -n "${KITCREATOR_MINBUILD}" ]; then
   273    291   			find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
   274    292   		fi
   275    293   
   276    294   		# Clean up encodings