Diff

Differences From Artifact [e21d739f84]:

To Artifact [b1fd7e8b36]:


40
41
42
43
44
45
46

47
48


49

50
51
52
53
54
55
56
57
58
59
60
61
62

63
64
65
66
67
68
69
70
71
			CVSTAG="trunk"
		fi
		export CVSTAG

		(       
			cd src || exit 1


			rm -f "tmp-tk.tar.gz"
			wget -O "tmp-tk.tar.gz" "http://core.tcl.tk/tk/tarball/tk-${CVSTAG}.tar.gz?uuid=${CVSTAG}" || rm -f 'tmp-tk.tar.gz'




			gzip -dc "tmp-tk.tar.gz" | tar -xf -
			rm -f "tmp-tk.tar.gz"
			if [ -d "tk-${CVSTAG}.tar" ]; then
				rm -rf "tk-${CVSTAG}"
				mv "tk-${CVSTAG}.tar" "tk-${CVSTAG}"
			fi

			rm -rf "tk${TCLVERS}"
			mv "tk-${CVSTAG}" "tk${TCLVERS}"
                        
			tar -cf - "tk${TCLVERS}" | gzip -c > "../${SRC}"

			rm -f "tmp-tk.tar.gz"

			rm -rf "tk-${CVSTAG}"
			rm -rf "tk${TCLVERS}"
		)
	else
		rm -f "${SRC}.tmp"
		wget -O "${SRC}.tmp" "${SRCURL}" || exit 1
		mv "${SRC}.tmp" "${SRC}"
	fi
fi







>
|
|
>
>

>

<
<
<
<
<

<


|

<
>
|
<







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54





55

56
57
58
59

60
61

62
63
64
65
66
67
68
			CVSTAG="trunk"
		fi
		export CVSTAG

		(       
			cd src || exit 1

			workdir="tmp-$$${RANDOM}${RANDOM}${RANDOM}"
			rm -rf "${workdir}"

			mkdir "${workdir}" || exit 1
			cd "${workdir}" || exit 1

			wget -O "tmp-tk.tar.gz" "http://core.tcl.tk/tk/tarball/tk-${CVSTAG}.tar.gz?uuid=${CVSTAG}" || rm -f 'tmp-tk.tar.gz'
			gzip -dc "tmp-tk.tar.gz" | tar -xf -







			mv "tk-${CVSTAG}" "tk${TCLVERS}"
                        
			tar -cf - "tk${TCLVERS}" | gzip -c > "../../${SRC}"


			cd ..
			rm -rf "${workdir}"

		)
	else
		rm -f "${SRC}.tmp"
		wget -O "${SRC}.tmp" "${SRCURL}" || exit 1
		mv "${SRC}.tmp" "${SRC}"
	fi
fi