Index: kitsh/build.sh ================================================================== --- kitsh/build.sh +++ kitsh/build.sh @@ -184,11 +184,11 @@ else mv tclsh kit fi else ## The executable is always named "kit" - if [ -f 'kit.exe' -a ! -f 'kit' ]; then + if [ -f 'kit.exe' ]; then KITTARGET_NAME='./kit.exe' else KITTARGET_NAME='./kit' fi fi @@ -224,11 +224,11 @@ echo "Running: \"${TCLSH_NATIVE}\" installvfs.tcl \"${KITTARGET_NAME}\" starpack.vfs \"${ENABLECOMPRESSION}\" \"${KITTARGET_NAME}.new\"" "${TCLSH_NATIVE}" installvfs.tcl "${KITTARGET_NAME}" starpack.vfs "${ENABLECOMPRESSION}" "${KITTARGET_NAME}.new" || exit 1 fi fi - cat "${KITTARGET_NAME}.new" > "${KITTARGET_NAME}" || exit 1 + cp "${KITTARGET_NAME}.new" "${KITTARGET_NAME}" rm -f "${KITTARGET_NAME}.new" # Cleanup if [ "${KITTARGET}" = "kitdll" ]; then ## Remove built interpreters if we are building KitDLL --