Diff

Differences From Artifact [44b34e71e4]:

To Artifact [c993cbeca4]:


34
35
36
37
38
39
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
72
34
35
36
37
38
39
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
72







-
-
-
+
+
+




-
+

-
+











-
+


-
+







if [ ! -f "${SRC}" ]; then
	mkdir 'src' >/dev/null 2>/dev/null

	use_fossil='0'
	if echo "${TCLVERS}" | grep '^cvs_' >/dev/null; then
		use_fossil='1'

		CVSTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g')
		if [ "${CVSTAG}" = "HEAD" ]; then
			CVSTAG="trunk"
		FOSSILTAG=$(echo "${TCLVERS}" | sed 's/^cvs_//g')
		if [ "${FOSSILTAG}" = "HEAD" ]; then
			FOSSILTAG="trunk"
		fi
	elif echo "${TCLVERS}" | grep '^fossil_' >/dev/null; then
		use_fossil='1'

		CVSTAG=$(echo "${TCLVERS}" | sed 's/^fossil_//g')
		FOSSILTAG=$(echo "${TCLVERS}" | sed 's/^fossil_//g')
	fi
	export CVSTAG
	export FOSSILTAG

	if [ "${use_fossil}" = "1" ]; then
		(       
			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'
			wget -O "tmp-tk.tar.gz" "http://core.tcl.tk/tk/tarball/tk-fossil.tar.gz?uuid=${FOSSILTAG}" || rm -f 'tmp-tk.tar.gz'
			gzip -dc "tmp-tk.tar.gz" | tar -xf -

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

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