diff options
| author | Darren Hart <dvhart@linux.intel.com> | 2013-02-08 14:27:24 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-11 22:54:04 +0000 |
| commit | 2df83a53ba68f57eb7caa7d11a8873ed97b583b4 (patch) | |
| tree | fd31955a071c939ac191d9c5b0743ed198845ba5 /scripts/oe-git-proxy-socks-command | |
| parent | 9902eb341a31ad3e42ab857793914e09caec81c7 (diff) | |
| download | poky-2df83a53ba68f57eb7caa7d11a8873ed97b583b4.tar.gz | |
oe-git-proxy*: Remove previous git proxy solutions
The new oe-git-proxy should address all git proxying needs, remove
the previous scripts.
V2: Separate the removal of the old scripts into their own patch
(From OE-Core rev: 75738ac47b9ca11daa94820c9c5f829937397da7)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-git-proxy-socks-command')
| -rwxr-xr-x | scripts/oe-git-proxy-socks-command | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/oe-git-proxy-socks-command b/scripts/oe-git-proxy-socks-command deleted file mode 100755 index 8acffb5248..0000000000 --- a/scripts/oe-git-proxy-socks-command +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | #! /bin/bash | ||
| 2 | SCRIPTDIR=`dirname $0` | ||
| 3 | # Check oe-git-proxy-socks exists | ||
| 4 | PROXYSOCKS=`which oe-git-proxy-socks 2> /dev/null` | ||
| 5 | if [ -z "$PROXYSOCKS" -a -e "$SCRIPTDIR/oe-git-proxy-socks.c" ]; then | ||
| 6 | # If not try and build it | ||
| 7 | gcc $SCRIPTDIR/oe-git-proxy-socks.c -o $SCRIPTDIR/oe-git-proxy-socks | ||
| 8 | fi | ||
| 9 | PROXYSOCKS=`which oe-git-proxy-socks 2> /dev/null` | ||
| 10 | if [ ! -x "$PROXYSOCKS" ]; then | ||
| 11 | # If that fails, we can see if netcat (nc) is available | ||
| 12 | NETCAT=`which nc 2> /dev/null` | ||
| 13 | if [ ! -x "$NETCAT" ]; then | ||
| 14 | # If that fails, explain to the user | ||
| 15 | echo "Unable to find oe-git-proxy-socks. This is usually created with the command" | ||
| 16 | echo "'gcc scripts/oe-git-proxy-socks.c -o scripts/oe-git-proxy-socks' which we tried" | ||
| 17 | echo "but it doesn't seem to have worked. Please compile the binary manually." | ||
| 18 | echo "Alternativly, install nc (netcat) on this machine." | ||
| 19 | exit 1 | ||
| 20 | fi | ||
| 21 | exec $NETCAT -x $GIT_PROXY_HOST:$GIT_PROXY_PORT "$@" | ||
| 22 | fi | ||
| 23 | oe-git-proxy-socks -S $GIT_PROXY_HOST:$GIT_PROXY_PORT $@ | ||
