Index: common/post/sdk.sh ================================================================== --- common/post/sdk.sh +++ common/post/sdk.sh @@ -12,10 +12,11 @@ rm -rf '__tmp__' mkdir '__tmp__' mkdir '__tmp__/include' mkdir '__tmp__/lib' +mkdir '__tmp__/bin' mkdir '__tmp__/doc' cp 'tcl/inst/lib/tclConfig.sh' '__tmp__/lib/' cp -rp 'tcl/inst/include'/* '__tmp__/include/' cp 'tcl/inst/lib'/libtclstub* '__tmp__/lib/' @@ -25,10 +26,13 @@ cp -rp 'tk/inst/include'/* '__tmp__/include/' cp 'tk/inst/lib'/libtkstub* '__tmp__/lib/' fi cp 'kitsh/build'/kitsh-*/libtclkit* '__tmp__/lib/' +cp 'kitsh/build'/kitsh-*/tclsh '__tmp__/bin/' >/dev/null 2>/dev/null +cp 'kitsh/build'/kitsh-*/tclsh.exe '__tmp__/bin/' >/dev/null 2>/dev/null +rmdir '__tmp__/bin' >/dev/null 2>/dev/null for dir in */; do if [ ! -d "${dir}/build" ]; then continue fi @@ -138,11 +142,11 @@ ( cd '__tmp__' || exit 1 mkdir "libtclkit-sdk-${TCLVERS}" - mv 'lib' 'include' 'doc' "libtclkit-sdk-${TCLVERS}/" + mv 'bin' 'lib' 'include' 'doc' "libtclkit-sdk-${TCLVERS}/" if [ -e 'Android.mk' ]; then mv 'Android.mk' "libtclkit-sdk-${TCLVERS}/" fi Index: kitsh/build.sh ================================================================== --- kitsh/build.sh +++ kitsh/build.sh @@ -184,13 +184,13 @@ done ## Also create an executable named "kit" so that we can run it later ${MAKE:-make} tclsh if [ -f "tclsh.exe" ]; then - mv tclsh.exe kit.exe + cp tclsh.exe kit.exe else - mv tclsh kit + cp tclsh kit fi else ## The executable is always named "kit" if [ -f 'kit.exe' ]; then KITTARGET_NAME='./kit.exe'