Check-in [94769f000a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added support for using a helper application to download files
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:94769f000a9b31553f9f245ade52cffa5a167b5b
User & Date: rkeene 2016-01-27 03:57:26
Context
2016-01-27
04:00
Build-CC 0.12 check-in: e451592ac8 user: rkeene tags: trunk, 0.12
03:57
Added support for using a helper application to download files check-in: 94769f000a user: rkeene tags: trunk
03:54
Abort if download fails check-in: d80ed8ed85 user: rkeene tags: trunk
Changes

Changes to scripts/common.

6
7
8
9
10
11
12







13
14
15
16
17
18
19
	local file
	local checksum dl_checksum
	local tmpfile

	url="$1"
	file="$2"
	checksum="$3"







	tmpfile="${file}.tmp"

	if [ -s "${file}" ]; then
		return 0
	fi

	mkdir -p "$(dirname "${tmpfile}")" 2>/dev/null >/dev/null







>
>
>
>
>
>
>







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
	local file
	local checksum dl_checksum
	local tmpfile

	url="$1"
	file="$2"
	checksum="$3"

	if [ -n "${BUILD_CC_DOWNLOAD_HELPER}" ]; then
		"${BUILD_CC_DOWNLOAD_HELPER}" "${url}" "${file}" "${checksum}"

		return "$?"
	fi

	tmpfile="${file}.tmp"

	if [ -s "${file}" ]; then
		return 0
	fi

	mkdir -p "$(dirname "${tmpfile}")" 2>/dev/null >/dev/null