Add support for GCC_PREREQUISITES_BASE_URL, so packages can be
fetched from a local mirror instead of gcc.gnu.org every time.
contrib/ChangeLog:
* download_prerequisites (base_url): Allow overriding via the
GCC_PREREQUISITES_BASE_URL environment variable. Document it
in --help output.
isl='isl-0.24.tar.bz2'
gettext='gettext-1.0.tar.gz'
-base_url='https://gcc.gnu.org/pub/gcc/infrastructure/'
+base_url="${GCC_PREREQUISITES_BASE_URL:-https://gcc.gnu.org/pub/gcc/infrastructure/}"
+base_url="${base_url%/}/"
echo_archives() {
echo "${gettext}"
--only-gettext inhibit downloading any package but gettext
--help show this text and exit
--version show version information and exit
+
+Environment variables:
+
+ GCC_PREREQUISITES_BASE_URL URL to download from
+ [${base_url}]
"
versiontext="${program} ${version}