Diff

Differences From Artifact [12528bdfc5]:

To Artifact [58316dd2e7]:


    40     40   
    41     41   	use_fossil='0'
    42     42   	if echo "${TCLVERS}" | grep '^cvs_' >/dev/null; then
    43     43   		use_fossil='1'
    44     44   	elif echo "${TCLVERS}" | grep '^fossil_' >/dev/null; then
    45     45   		use_fossil='1'
    46     46   	fi
           47  +
           48  +	if [ -d 'buildsrc' ]; then
           49  +		# Override here to avoid downloading tarball from Fossil if we
           50  +		# have a particular tree already available.
           51  +		use_fossil='0'
           52  +	fi
    47     53   
    48     54   	if [ "${use_fossil}" = "1" ]; then
    49     55   		(       
    50     56   			FOSSILDATE="$(cat "${TCLFOSSILDATE}" 2>/dev/null)"
    51     57   
    52     58   			cd src || exit 1
    53     59   
................................................................................
    64     70                           
    65     71   			tar -cf - "tk${TCLVERS}" | gzip -c > "../../${SRC}"
    66     72   
    67     73   			cd ..
    68     74   			rm -rf "${workdir}"
    69     75   		)
    70     76   	else
    71         -		rm -f "${SRC}.tmp"
    72         -		wget -O "${SRC}.tmp" "${SRCURL}" || exit 1
    73         -		mv "${SRC}.tmp" "${SRC}"
           77  +		if [ ! -d 'buildsrc' ]; then
           78  +			rm -f "${SRC}.tmp"
           79  +			wget -O "${SRC}.tmp" "${SRCURL}" || exit 1
           80  +			mv "${SRC}.tmp" "${SRC}"
           81  +		fi
    74     82   	fi
    75     83   fi
    76     84   
    77     85   (
    78     86   	cd 'build' || exit 1
    79     87   
    80     88   	if [ ! -d '../buildsrc' ]; then