Diff

Differences From Artifact [88b3d324b1]:

To Artifact [014dfa22c8]:


   128    128   
   129    129   				failed="${failed} ${version}/${kit}-build"
   130    130   
   131    131   				continue
   132    132   			fi
   133    133   
   134    134   			echo "Creating Tclkit ${version}/${kit}..."
          135  +			echo " *** Build started $(whoami)@$(hostname) on $(date)" > "${buildlog}"
          136  +			echo '' >> "${buildlog}"
          137  +			echo " *** Build Script" >> "${buildlog}"
   135    138   
   136    139   			if [ "${notk}" = "1" ]; then
   137    140   				KITCREATOR_PKGS='itcl mk4tcl'
   138    141   				export KITCREATOR_PKGS
          142  +
          143  +				echo "  KITCREATOR_PKGS=\"${KITCREATOR_PKGS}\"" >> "${buildlog}"
          144  +				echo "  export KITCREATOR_PKGS" >> "${buildlog}"
   139    145   			fi
   140    146   
   141    147   			if [ "${statictk}" = "1" ]; then
   142    148   				STATICTK="1"
   143    149   				export STATICTK
          150  +
          151  +				echo "  STATICTK=\"${STATICTK}\"" >> "${buildlog}"
          152  +				echo "  export STATICTK" >> "${buildlog}"
          153  +			fi
          154  +
          155  +			if [ "${kitcreator}" != "./kitcreator" ]; then
          156  +				echo "  mkdir build" >> "${buildlog}"
          157  +
          158  +				# Several build scripts rely on minkit to work
          159  +				if grep './build/make-minkit' "${kitcreator}" >/dev/null 2>/dev/null; then
          160  +					echo "  cat << \__EOF__ > ./build/make-minkit" >> "${buildlog}"
          161  +					sed 's@^@  @'  './build/make-minkit' >> "${buildlog}"
          162  +					echo "  __EOF__" >> "${buildlog}"
          163  +					echo '' >> "${buildlog}"
          164  +				fi
          165  +				echo "  cat << \__EOF__ > ${kitcreator}" >> "${buildlog}"
          166  +				sed 's@^@  @'  "${kitcreator}" >> "${buildlog}"
          167  +				echo "  __EOF__" >> "${buildlog}"
          168  +				echo '' >> "${buildlog}"
   144    169   			fi
          170  +			echo "  \"${kitcreator}\" \"${version}\" ${args}" >> "${buildlog}"
          171  +			echo '' >> "${buildlog}"
          172  +			echo '' >> "${buildlog}"
          173  +			echo '' >> "${buildlog}"
          174  +			echo " *** Build Results" >> "${buildlog}"
          175  +			echo '' >> "${buildlog}"
   145    176   
   146    177   			buildfailed="0"
   147         -			"${kitcreator}" "${version}" ${args} > "${buildlog}" 2>&1 || buildfailed="1"
          178  +			"${kitcreator}" "${version}" ${args} >> "${buildlog}" 2>&1 || buildfailed="1"
   148    179   			grep -n '^' */build.log >> "${buildlog}" 2>&1
   149    180   
   150    181   			if [ ! -f "${createdkit}" ]; then
   151    182   				echo "Failed to create kit ${version}/${kit}" >&2
   152    183   
   153    184   				failed="${failed} ${version}/${kit}-build"
   154    185