Index: common/post/sdk.sh ================================================================== --- common/post/sdk.sh +++ common/post/sdk.sh @@ -32,22 +32,26 @@ if [ ! -d "${dir}/build" ]; then continue fi project="$(basename "${dir}")" - projdir="$(cd "${dir}/build"/* >/dev/null || exit; /bin/pwd)" + projdir="$(cd "${dir}/build"/* >/dev/null 2>/dev/null || exit; /bin/pwd)" docdir="__tmp__/doc/${project}" - if [ ! -d "${projdir}" ]; then + if [ -z "${projdir}" -o ! -d "${projdir}" ]; then continue fi mkdir -p "${docdir}" case "${project}" in itcl|tcl|tk) - cp "${projdir}/doc/license.terms" "${docdir}/" + if [ -f "${projdir}/doc/license.terms" ]; then + cp "${projdir}/doc/license.terms" "${docdir}/" + elif [ -f "${projdir}/license.terms" ]; then + cp "${projdir}/license.terms" "${docdir}/" + fi ;; tclvfs|kitsh|mk4tcl|thread) cp "${projdir}/license.terms" "${docdir}/" ;; zlib)