summaryrefslogtreecommitdiffstats
path: root/scripts/oe-publish-sdk
AgeCommit message (Expand)Author
2021-09-23scripts/oe-publish-sdk: Disable git gc to avoid build errorsRichard Purdie
2020-09-08oe-publish-sdk: add --keep-orig optionAdrian Freihofer
2020-09-08oe-publish-sdk: fix layers init via sshAdrian Freihofer
2019-05-09meta/lib+scripts: Convert to SPDX license headersRichard Purdie
2017-08-09scripts/oe-publish-sdk: use hook to call git update-server-infoAndrea Galbusera
2017-01-31oe-publish-sdk: add pyshtables.py to .gitignoreAndrea Galbusera
2016-06-02scripts: python3: change python to python3 in shebangEd Bartosh
2016-04-18devtool: sdk-update: reset git metadata on updateStephano Cetola
2016-03-31oe-publish-sdk: exclude sstate-cache if publishing minimal SDKPaul Eggleton
2016-03-31oe-publish-sdk: prevent specifying a directory for the SDK argumentPaul Eggleton
2016-03-31scripts, lib: Don't limit traceback lengths to arbitrary valuesRichard Purdie
2016-03-23oe-publish-sdk: fix remote publishingPaul Eggleton
2016-03-23oe-publish-sdk: improve help output slightlyPaul Eggleton
2016-03-23oe-publish-sdk: drop SDK installer file from published outputPaul Eggleton
2016-01-11scripts/oe-publish-sdk: add missing call to git update-server-infoPaul Eggleton
2015-12-22scripts: print usage in argparse-using scripts when a command-line error occursPaul Eggleton
2015-10-24scripts/oe-publish-sdk: create directory before making git repoCostin Constantin
2015-09-07oe-publish-sdk: add scriptQi.Chen@windriver.com
OpenEmbedded Core user contribution treesGrokmirror user
summaryrefslogtreecommitdiffstats
path: root/scripts/oe-git-proxy-socks-command
blob: 8acffb5248d6d1c0e2d99abc4e47e4a1eedbeb27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/bash
SCRIPTDIR=`dirname $0`
# Check oe-git-proxy-socks exists
PROXYSOCKS=`which oe-git-proxy-socks 2> /dev/null`
if [ -z "$PROXYSOCKS" -a -e "$SCRIPTDIR/oe-git-proxy-socks.c" ]; then
	# If not try and build it
	gcc $SCRIPTDIR/oe-git-proxy-socks.c -o $SCRIPTDIR/oe-git-proxy-socks
fi
PROXYSOCKS=`which oe-git-proxy-socks 2> /dev/null`
if [ ! -x "$PROXYSOCKS" ]; then
	# If that fails, we can see if netcat (nc) is available
	NETCAT=`which nc 2> /dev/null`
	if [ ! -x "$NETCAT" ]; then
		# If that fails, explain to the user
		echo "Unable to find oe-git-proxy-socks. This is usually created with the command"
		echo "'gcc scripts/oe-git-proxy-socks.c -o scripts/oe-git-proxy-socks' which we tried"
		echo "but it doesn't seem to have worked. Please compile the binary manually."
		echo "Alternativly, install nc (netcat) on this machine."
		exit 1
	fi
	exec $NETCAT -x $GIT_PROXY_HOST:$GIT_PROXY_PORT "$@"
fi
oe-git-proxy-socks -S $GIT_PROXY_HOST:$GIT_PROXY_PORT $@