ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/gar/bin/gitproxy
Revision: 1
Committed: Sat Jun 20 14:58:51 2026 UTC (4 weeks, 3 days ago) by operz
File size: 633 byte(s)
Log Message:
Initial import of OZSW mgar build tree

File Contents

# User Rev Content
1 operz 1 #!/bin/bash
2    
3     if [ -n "${http_proxy}" ]; then
4    
5     REMHOST=$1
6     REMPORT=$2
7    
8     set - $(echo "${http_proxy}" | gsed 's/http//i' | tr -d '/' | tr ':' ' ')
9     PROXYHOST=$1
10     PROXYPORT=$2
11    
12     # this bit is copied from http://lkml.org/lkml/2006/2/26/207 and then
13     # modified to use netcat and handle proxy settings from the env.
14     # (echo "CONNECT ${REMHOST}:${REMPORT} HTTP/1.0"; echo; cat ) |
15     # nc ${PROXYHOST} ${PROXYPORT} | (read a; read a; cat )
16     exec /opt/csw/bin/socat STDIO PROXY:${PROXYHOST}:${REMHOST}:${REMPORT},proxyport=${PROXYPORT}
17    
18     else
19     echo Please set http_proxy in your environment. >&2
20     exit 1
21     fi

Properties

Name Value
svn:executable *