Diff

Differences From Artifact [a153496432]:

To Artifact [f85e1724d4]:


    26     26   if [ ! -f "${SRC}" ]; then
    27     27   	mkdir 'src' >/dev/null 2>/dev/null
    28     28   
    29     29   	use_fossil='0'
    30     30   	if echo "${TCLVERS}" | grep '^cvs_' >/dev/null; then
    31     31   		use_fossil='1'
    32     32   
    33         -		CVSTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g')
    34         -		if [ "${CVSTAG}" = "HEAD" ]; then
    35         -			CVSTAG="trunk"
           33  +		FOSSILTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g')
           34  +		if [ "${FOSSILTAG}" = "HEAD" ]; then
           35  +			FOSSILTAG="trunk"
    36     36   		fi
    37     37   	elif echo "${TCLVERS}" | grep '^fossil_' >/dev/null; then
    38     38   		use_fossil='1'
    39     39   
    40         -		CVSTAG=$(echo "${TCLVERS}" | sed 's/^fossil_//g')
           40  +		FOSSILTAG=$(echo "${TCLVERS}" | sed 's/^fossil_//g')
    41     41   	fi
    42         -	export CVSTAG
           42  +	export FOSSILTAG
    43     43   
    44     44   	if [ "${use_fossil}" = "1" ]; then
    45     45   		(
    46     46   			cd src || exit 1
    47     47   
    48     48   			workdir="tmp-$$${RANDOM}${RANDOM}${RANDOM}"
    49     49   			rm -rf "${workdir}"
    50     50   
    51     51   			mkdir "${workdir}" || exit 1
    52     52   			cd "${workdir}" || exit 1
    53     53   
    54         -			wget -O "tmp-tcl.tar.gz" "http://core.tcl.tk/tcl/tarball/tcl-fossil.tar.gz?uuid=${CVSTAG}" || rm -f 'tmp-tcl.tar.gz'
    55         -			wget -O "tmp-itcl.tar.gz" "http://core.tcl.tk/itcl/tarball/itcl-fossil.tar.gz?uuid=${CVSTAG}" || rm -f 'tmp-itcl.tar.gz'
    56         -			wget -O "tmp-thread.tar.gz" "http://core.tcl.tk/thread/tarball/thread-fossil.tar.gz?uuid=${CVSTAG}" || rm -f "tmp-thread.tar.gz"
    57         -			wget -O "tmp-tclconfig.tar.gz" "http://core.tcl.tk/tclconfig/tarball/tclconfig-fossil.tar.gz?uuid=${CVSTAG}" || rm -f "tmp-tclconfig.tar.gz"
           54  +			wget -O "tmp-tcl.tar.gz" "http://core.tcl.tk/tcl/tarball/tcl-fossil.tar.gz?uuid=${FOSSILTAG}" || rm -f 'tmp-tcl.tar.gz'
           55  +			wget -O "tmp-itcl.tar.gz" "http://core.tcl.tk/itcl/tarball/itcl-fossil.tar.gz?uuid=${FOSSILTAG}" || rm -f 'tmp-itcl.tar.gz'
           56  +			wget -O "tmp-thread.tar.gz" "http://core.tcl.tk/thread/tarball/thread-fossil.tar.gz?uuid=${FOSSILTAG}" || rm -f "tmp-thread.tar.gz"
           57  +			wget -O "tmp-tclconfig.tar.gz" "http://core.tcl.tk/tclconfig/tarball/tclconfig-fossil.tar.gz?uuid=${FOSSILTAG}" || rm -f "tmp-tclconfig.tar.gz"
    58     58   
    59     59   			gzip -dc 'tmp-tcl.tar.gz' | tar -xf -
    60     60   			gzip -dc "tmp-itcl.tar.gz" | tar -xf -
    61     61   			gzip -dc "tmp-thread.tar.gz" | tar -xf -
    62     62   			gzip -dc "tmp-tclconfig.tar.gz" | tar -xf -
    63     63   
    64     64   			mv "tcl-fossil" "tcl${TCLVERS}"