Diff

Differences From Artifact [805b596118]:

To Artifact [178995da06]:


    24     24   mkdir 'build' 'out' 'inst' || exit 1
    25     25   
    26     26   if [ ! -f "${SRC}" ]; then
    27     27   	mkdir 'src' >/dev/null 2>/dev/null
    28     28   
    29     29   	if echo "${TCLVERS}" | grep '^cvs_' >/dev/null; then
    30     30   		CVSTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g')
           31  +		if [ "${CVSTAG}" = "HEAD" ]; then
           32  +			CVSTAG="trunk"
           33  +		fi
    31     34   		export CVSTAG
    32     35   
    33     36   		(
    34     37   			cd src || exit 1
    35     38   
    36         -			cvs -z3 -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl co -r "${CVSTAG}" -P tcl
           39  +			rm -f "tmp-tcl.zip"
           40  +			wget -O "tmp-tcl.zip" "http://tcltk.oc9.org/fossils/tcl/zip/unnamed-${CVSTAG}.zip?uuid=${CVSTAG}" || rm -f "tmp-tcl.zip"
           41  +			unzip "tmp-tcl.zip"
           42  +			rm -f "tmp-tcl.zip"
    37     43   
    38         -			mv tcl "tcl${TCLVERS}"
           44  +			rm -rf "tcl${TCLVERS}"
           45  +			mv "unnamed-${CVSTAG}" "tcl${TCLVERS}"
    39     46   
    40         -			tar -cf - "tcl${TCLVERS}" | gzip -c > "../${SRC}"
           47  +			if [ -d "tcl${TCLVERS}" ]; then
           48  +				find "tcl${TCLVERS}" -name configure -type f | xargs chmod +x
           49  +
           50  +				tar -cf - "tcl${TCLVERS}" | gzip -c > "../${SRC}"
           51  +			fi
    41     52   		)
    42     53   	else
    43     54   		rm -f "${SRC}.tmp"
    44     55   		wget -O "${SRC}.tmp" "${SRCURL}" || exit 1
    45     56   		mv "${SRC}.tmp" "${SRC}"
    46     57   	fi
    47     58   fi