summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-04-13 22:46:02 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-04-13 22:46:02 (GMT)
commit0b89b1a938ea18c4828b7a4e186efe0dade7d3a9 (patch)
treefdef0821e53b630624c69ed91cada6ca5cc8d890 /scripts
parent2dffee230ad83bcc4614e0e1bdb9d20d53b80574 (diff)
Allow using an HTTP proxy to tunnel FTP and HTTP requests.
scripts/crosstool.sh | 14 14 0 0 +++++++++++++ config/global.in | 54 54 0 0 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/crosstool.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh
index 64e5859..374f974 100755
--- a/scripts/crosstool.sh
+++ b/scripts/crosstool.sh
@@ -307,6 +307,20 @@ if [ -z "${CT_RESTART}" ]; then
[ ${CT_PARALLEL_JOBS} -ne 0 ] && PARALLELMFLAGS="${PARALLELMFLAGS} -j${CT_PARALLEL_JOBS}"
[ ${CT_LOAD} -ne 0 ] && PARALLELMFLAGS="${PARALLELMFLAGS} -l${CT_LOAD}"
+ # Set environment for proxy access
+ if [ "${CT_USE_HTTP_PROXY}" = "y" ]; then
+ http_proxy="http://"
+ case "${CT_HTTP_PROXY_USER}:${CT_HTTP_PROXY_PASSWD}" in
+ :) ;;
+ :*) http_proxy="${http_proxy}:${CT_HTP_PROXY_PASSWD}@";;
+ *:) http_proxy="${http_proxy}${CT_HTTP_PROXY_USER}@";;
+ *:*) http_proxy="${http_proxy}${CT_HTTP_PROXY_USER}:${CT_HTP_PROXY_PASSWD}@";;
+ esac
+ export http_proxy="${http_proxy}${HTTP_PROXY_HOST}:${HTTP_PROXY_PORT}/"
+ export https_proxy="${http_proxy}"
+ export ftp_proxy="${http_proxy}"
+ fi
+
CT_DoStep EXTRA "Dumping internal crosstool-NG configuration"
CT_DoLog EXTRA "Building a toolchain for:"
CT_DoLog EXTRA " build = ${CT_BUILD}"