Diff

Differences From Artifact [44b34e71e4]:

To Artifact [c993cbeca4]:


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