Index: itcl/build.sh ================================================================== --- itcl/build.sh +++ itcl/build.sh @@ -49,17 +49,23 @@ ) || exit 0 if [ ! -f "${SRC}" ]; then mkdir 'src' >/dev/null 2>/dev/null - wget -O "${SRC}" "${SRCURL}" || exit 1 + rm -f "${SRC}.tmp" + wget -O "${SRC}.tmp" "${SRCURL}" || exit 1 + mv "${SRC}.tmp" "${SRC}" fi ( cd 'build' || exit 1 - gzip -dc "../${SRC}" | tar -xf - + if [ ! -d '../buildsrc' ]; then + gzip -dc "../${SRC}" | tar -xf - + else + cp -rp ../buildsrc/* './' + fi cd "${BUILDDIR}" || exit 1 ./configure --enable-shared --disable-symbols --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA} ${MAKE:-make} || exit 1 Index: mk4tcl/build.sh ================================================================== --- mk4tcl/build.sh +++ mk4tcl/build.sh @@ -30,17 +30,23 @@ export TCL_VERSION if [ ! -f "${SRC}" ]; then mkdir 'src' >/dev/null 2>/dev/null - wget -O "${SRC}" "${SRCURL}" || exit 1 + rm -f "${SRC}.tmp" + wget -O "${SRC}.tmp" "${SRCURL}" || exit 1 + mv "${SRC}.tmp" "${SRC}" fi ( cd 'build' || exit 1 - gzip -dc "../${SRC}" | tar -xf - + if [ ! -d '../buildsrc' ]; then + gzip -dc "../${SRC}" | tar -xf - + else + cp -rp ../buildsrc/* './' + fi # Apply required patches cd "${BUILDDIR}" || exit 1 for patch in "${PATCHDIR}/all"/metakit-${MK4VERS}-*.diff "${PATCHDIR}/${TCL_VERSION}"/metakit-${MK4VERS}-*.diff; do if [ ! -f "${patch}" ]; then Index: tcl/build.sh ================================================================== --- tcl/build.sh +++ tcl/build.sh @@ -36,18 +36,24 @@ mv tcl "tcl${TCLVERS}" tar -cf - "tcl${TCLVERS}" | gzip -c > "../${SRC}" ) else - wget -O "${SRC}" "${SRCURL}" || exit 1 + rm -f "${SRC}.tmp" + wget -O "${SRC}.tmp" "${SRCURL}" || exit 1 + mv "${SRC}.tmp" "${SRC}" fi fi ( cd 'build' || exit 1 - gzip -dc "../${SRC}" | tar -xf - + if [ ! -d '../buildsrc' ]; then + gzip -dc "../${SRC}" | tar -xf - + else + cp -rp ../buildsrc/* './' + fi cd "${BUILDDIR}" || exit 1 for dir in unix win macosx; do # Remove previous directory's "tclConfig.sh" if found rm -f 'tclConfig.sh' Index: tclvfs/build.sh ================================================================== --- tclvfs/build.sh +++ tclvfs/build.sh @@ -30,17 +30,23 @@ export TCL_VERSION if [ ! -f "${SRC}" ]; then mkdir 'src' >/dev/null 2>/dev/null - wget -O "${SRC}" "${SRCURL}" || exit 1 + rm -f "${SRC}.tmp" + wget -O "${SRC}.tmp" "${SRCURL}" || exit 1 + mv "${SRC}.tmp" "${SRC}" fi ( cd 'build' || exit 1 - gzip -dc "../${SRC}" | tar -xf - + if [ ! -d '../buildsrc' ]; then + gzip -dc "../${SRC}" | tar -xf - + else + cp -rp ../buildsrc/* './' + fi cd "${BUILDDIR}" || exit 1 # Apply required patches for patch in "${PATCHDIR}/all"/tclvfs-${TCLVFSVERS}-*.diff "${PATCHDIR}/${TCL_VERSION}"/tclvfs-${TCLVFSVERS}-*.diff; do Index: tk/build.sh ================================================================== --- tk/build.sh +++ tk/build.sh @@ -35,19 +35,25 @@ mv tk "tk${TCLVERS}" tar -cf - "tk${TCLVERS}" | gzip -c > "../${SRC}" ) - else - wget -O "${SRC}" "${SRCURL}" || exit 1 + else + rm -f "${SRC}.tmp" + wget -O "${SRC}.tmp" "${SRCURL}" || exit 1 + mv "${SRC}.tmp" "${SRC}" fi fi ( cd 'build' || exit 1 - gzip -dc "../${SRC}" | tar -xf - + if [ ! -d '../buildsrc' ]; then + gzip -dc "../${SRC}" | tar -xf - + else + cp -rp ../buildsrc/* './' + fi cd "${BUILDDIR}" || exit 1 for dir in unix win macosx; do # Remove previous directory's "tkConfig.sh" if found rm -f 'tkConfig.sh'