1 # Read proxy information from Subversion if possible.
3 servers=~/.subversion/servers
5 if [ -O "$servers" ]; then
6 eval $(sed -n '/^\[global\]/,/^\[/s/^http-proxy-\([^= ]*\) *= *\(.*\)/proxy_\1="\2"/p' "$servers")
8 if [ ! -z "$proxy_host" ]; then
9 [ ! -z "$proxy_username" ] && creds="$proxy_username:$proxy_password@"
10 export http_proxy="http://$creds$proxy_host:${proxy_port:-80}"
14 unset proxy_username proxy_password proxy_host proxy_port creds servers