diff options
author | Brandon McAnsh <brandon.mcansh@gmail.com> | 2016-12-30 16:26:44 -0500 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2017-01-08 15:58:48 +0000 |
commit | 1846ec0341efacef7f90012ff64bae440fa12f1c (patch) | |
tree | 7ae6fbcf68d0c0b958e26b7574df52d9fc9be3e9 /build/tasks/http_curl_prebuilt.sh | |
parent | 3521fa5a3bd003269498eea337009ee4e17f3eda (diff) | |
download | vendor_replicant-1846ec0341efacef7f90012ff64bae440fa12f1c.zip vendor_replicant-1846ec0341efacef7f90012ff64bae440fa12f1c.tar.gz vendor_replicant-1846ec0341efacef7f90012ff64bae440fa12f1c.tar.bz2 |
http_prebuilt: Implement archive of artifacts
* checksum will be downloaded and asserted to prevent a
redownload every clean
* Archives will exist (invisibly) at vendor/cm/prebuilt/archive
Change-Id: I637e86cacd146d665044a119885900dc4660e22b
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Diffstat (limited to 'build/tasks/http_curl_prebuilt.sh')
-rwxr-xr-x | build/tasks/http_curl_prebuilt.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/tasks/http_curl_prebuilt.sh b/build/tasks/http_curl_prebuilt.sh new file mode 100755 index 0000000..c90c35f --- /dev/null +++ b/build/tasks/http_curl_prebuilt.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +url=$1 +output=$2 + +curl -L "$url" --create-dirs -o $output --compressed -H "Accept-Encoding: gzip,deflate,sdch" && exit 0 || exit 1 |