Diff

Differences From Artifact [3c8c3ad1cc]:

To Artifact [8d67b5681a]:


    30     30   
    31     31   for dir in */; do
    32     32   	if [ ! -d "${dir}/build" ]; then
    33     33   		continue
    34     34   	fi
    35     35   
    36     36   	project="$(basename "${dir}")"
    37         -	projdir="$(cd "${dir}/build"/* >/dev/null || exit; /bin/pwd)"
           37  +	projdir="$(cd "${dir}/build"/* >/dev/null 2>/dev/null || exit; /bin/pwd)"
    38     38   	docdir="__tmp__/doc/${project}"
    39     39   
    40         -	if [ ! -d "${projdir}" ]; then
           40  +	if [ -z "${projdir}" -o ! -d "${projdir}" ]; then
    41     41   		continue
    42     42   	fi
    43     43   
    44     44   	mkdir -p "${docdir}"
    45     45   
    46     46   	case "${project}" in
    47     47   		itcl|tcl|tk)
    48         -			cp "${projdir}/doc/license.terms" "${docdir}/"
           48  +			if [ -f "${projdir}/doc/license.terms" ]; then
           49  +				cp "${projdir}/doc/license.terms" "${docdir}/"
           50  +			elif [ -f "${projdir}/license.terms" ]; then
           51  +				cp "${projdir}/license.terms" "${docdir}/"
           52  +			fi
    49     53   			;;
    50     54   		tclvfs|kitsh|mk4tcl|thread)
    51     55   			cp "${projdir}/license.terms" "${docdir}/"
    52     56   			;;
    53     57   		zlib)
    54     58   			cp "${projdir}/README" "${docdir}/"
    55     59   			;;