Diff

Differences From Artifact [f8ef582bfc]:

To Artifact [8a67bfa303]:


    36     36   		fi
    37     37   	elif echo "${TCLVERS}" | grep '^fossil_' >/dev/null; then
    38     38   		use_fossil='1'
    39     39   
    40     40   		FOSSILTAG=$(echo "${TCLVERS}" | sed 's/^fossil_//g')
    41     41   	fi
    42     42   	export FOSSILTAG
           43  +
           44  +	if [ -d 'buildsrc' ]; then
           45  +		# Override here to avoid downloading tarball from Fossil if we
           46  +		# have a particular tree already available.
           47  +		use_fossil='0'
           48  +	fi
    43     49   
    44     50   	if [ "${use_fossil}" = "1" ]; then
    45     51   		(
    46     52   			cd src || exit 1
    47     53   
    48     54   			workdir="tmp-$$${RANDOM}${RANDOM}${RANDOM}"
    49     55   			rm -rf "${workdir}"
................................................................................
    89     95   			echo "${FOSSILDATE}" > "../../${SRC}.date"
    90     96   
    91     97   			cd ..
    92     98   
    93     99   			rm -rf "${workdir}"
    94    100   		) || exit 1
    95    101   	else
    96         -		rm -f "${SRC}.tmp"
    97         -		wget -O "${SRC}.tmp" "${SRCURL}" || exit 1
    98         -		mv "${SRC}.tmp" "${SRC}"
          102  +		if [ ! -d 'buildsrc' ]; then
          103  +			rm -f "${SRC}.tmp"
          104  +			wget -O "${SRC}.tmp" "${SRCURL}" || exit 1
          105  +			mv "${SRC}.tmp" "${SRC}"
          106  +		fi
    99    107   	fi
   100    108   fi
   101    109   
   102    110   (
   103    111   	cd 'build' || exit 1
   104    112   
   105    113   	if [ ! -d '../buildsrc' ]; then