Diff

Differences From Artifact [aad8b8fa3a]:

To Artifact [3d73e37614]:


    10     10   	exit 0
    11     11   fi
    12     12   
    13     13   rm -rf '__tmp__'
    14     14   mkdir '__tmp__'
    15     15   mkdir '__tmp__/include'
    16     16   mkdir '__tmp__/lib'
           17  +mkdir '__tmp__/doc'
    17     18   
    18     19   cp 'tcl/inst/lib/tclConfig.sh' '__tmp__/lib/'
    19     20   cp -rp 'tcl/inst/include'/* '__tmp__/include/'
    20     21   cp 'tcl/inst/lib'/libtclstub* '__tmp__/lib/'
    21     22   
    22     23   if [ -f 'tk/inst/lib/tkConfig.sh' ]; then
    23     24   	cp 'tk/inst/lib/tkConfig.sh' '__tmp__/lib/'
    24     25   	cp -rp 'tk/inst/include'/* '__tmp__/include/'
    25     26   	cp 'tk/inst/lib'/libtkstub* '__tmp__/lib/'
    26     27   fi
    27     28   
    28     29   cp 'kitsh/build'/kitsh-*/libtclkit* '__tmp__/lib/'
           30  +
           31  +for dir in */; do
           32  +	if [ ! -d "${dir}/build" ]; then
           33  +		continue
           34  +	fi
           35  +
           36  +	project="$(basename "${dir}")"
           37  +	projdir="$(cd "${dir}/build"/* >/dev/null || exit; /bin/pwd)"
           38  +	docdir="__tmp__/doc/${project}"
           39  +
           40  +	if [ ! -d "${projdir}" ]; then
           41  +		continue
           42  +	fi
           43  +
           44  +	mkdir -p "${docdir}"
           45  +
           46  +	case "${project}" in
           47  +		itcl|tcl|tk)
           48  +			cp "${projdir}/doc/license.terms" "${docdir}/"
           49  +			;;
           50  +		tclvfs|kitsh|metakit|thread)
           51  +			cp "${projdir}/license.terms" "${docdir}/"
           52  +			;;
           53  +		zlib)
           54  +			cp "${projdir}/README" "${docdir}/"
           55  +			;;
           56  +		*)
           57  +			cp "${projdir}/README" "${projdir}/LICENSE" "${projdir}/doc/README" "${projdir}/doc/LICENSE" "${projdir}/license.terms" "${projdir}/doc/license.terms" "${docdir}/" >/dev/null 2>/dev/null
           58  +			;;
           59  +	esac
           60  +done
    29     61   
    30     62   (
    31     63   	cd '__tmp__/lib' || exit 1
    32     64   
    33     65   	for kitlibfile in libtclkit*.dll libtclkit*; do
    34     66   		if [ ! -f "${kitlibfile}" ]; then
    35     67   			continue
................................................................................
    71    103   )
    72    104   
    73    105   (
    74    106   	cd '__tmp__' || exit 1
    75    107   
    76    108   	mkdir "libtclkit-sdk-${TCLVERS}"
    77    109   
    78         -	mv 'lib' 'include' "libtclkit-sdk-${TCLVERS}/"
          110  +	mv 'lib' 'include' 'doc' "libtclkit-sdk-${TCLVERS}/"
    79    111   
    80    112   	tar -cf - "libtclkit-sdk-${TCLVERS}" | gzip -9c > "../libtclkit-sdk-${TCLVERS}.tar.gz"
    81    113   )
    82    114   
    83    115   rm -rf '__tmp__'
    84    116   
    85    117   exit 0