Add backup url and sync support for Win32 tarball script
authorTamar Christina <tamar@zhox.com>
Tue, 25 Apr 2017 22:38:14 +0000 (18:38 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 25 Apr 2017 22:39:50 +0000 (18:39 -0400)
commit71c3cea60c74054b6ba9ed918a58814aa91e01c2
treeccb5d4d5d8e169d29f82d71c3a0199a4e6c21826
parent89a3241f708502e8fbcfaddbbe634790ad9cd02a
Add backup url and sync support for Win32 tarball script

This imports @bgamari's sync script into the mirror script
and adds a backup url for packages.

The idea is that the URLs won't need updating when updating
the tarballs from now on.

It will first try haskell.org,
failing that it'll try repo.msys2.org

Test Plan: try new command `mk/get-win32-tarballs.sh sync`

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie, bgamari

Differential Revision: https://phabricator.haskell.org/D3488
mk/get-win32-tarballs.sh