Diff

Differences From Artifact [08b84fc697]:

To Artifact [a153496432]:


    22     22   
    23     23   rm -rf 'build' 'out' 'inst'
    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  +	use_fossil='0'
    29     30   	if echo "${TCLVERS}" | grep '^cvs_' >/dev/null; then
           31  +		use_fossil='1'
           32  +
    30     33   		CVSTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g')
    31     34   		if [ "${CVSTAG}" = "HEAD" ]; then
    32     35   			CVSTAG="trunk"
    33     36   		fi
    34         -		export CVSTAG
           37  +	elif echo "${TCLVERS}" | grep '^fossil_' >/dev/null; then
           38  +		use_fossil='1'
    35     39   
           40  +		CVSTAG=$(echo "${TCLVERS}" | sed 's/^fossil_//g')
           41  +	fi
           42  +	export CVSTAG
           43  +
           44  +	if [ "${use_fossil}" = "1" ]; then
    36     45   		(
    37     46   			cd src || exit 1
    38     47   
    39     48   			workdir="tmp-$$${RANDOM}${RANDOM}${RANDOM}"
    40     49   			rm -rf "${workdir}"
    41     50   
    42     51   			mkdir "${workdir}" || exit 1