Check-in [999692e78c]
Overview
SHA1:999692e78c531811e39ff1745b6f1d9ac111cc04
Date: 2016-04-13 15:57:17
User: rkeene
Comment:Updated to wait for the remote host to come up before doing remote builds
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-04-26
16:15
[7c3a88c4dc] Added support for forcing Itcl 3.x to be built with newer versions of Tcl and increased version of Itcl to 3.4.3 (user: rkeene, tags: trunk)
2016-04-13
15:57
[999692e78c] Updated to wait for the remote host to come up before doing remote builds (user: rkeene, tags: trunk)
15:32
[c86d4fcb08] Updated download program to support old versions of bash (user: rkeene, tags: trunk)
Changes

Modified build/make-kit-remote from [e83aa4603b] to [e991615aec].

1
2
3
4
5
6
7


















8
9
10
11
12
13
14
#! /bin/bash

TARGET="$1"
shift

buildid="$(( hostname; id -u; pwd ) | openssl sha1 | sed 's@^.*= *@@')"
workdir="/tmp/work-kitcreator-${buildid}"



















rsync -aq --delete -e ssh . "${TARGET}:${workdir}/" || exit 1

(
	newArgv=("$@"); declare -p newArgv
	declare -p workdir
	export







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/bash

TARGET="$1"
shift

buildid="$(( hostname; id -u; pwd ) | openssl sha1 | sed 's@^.*= *@@')"
workdir="/tmp/work-kitcreator-${buildid}"

hostUp='0'
for try in {1..3}; do
	checkOk="$(timeout 300 ssh -q "${TARGET}" 'echo ok' 2>/dev/null)"

	if [ "${checkOk}" = 'ok' ]; then
		hostUp='1'
		break
	fi

	sleep 10
done

if [ "${hostUp}" != '1' ]; then
	echo "Unable to establish a link to the remote system." >&2

	exit 1
fi

rsync -aq --delete -e ssh . "${TARGET}:${workdir}/" || exit 1

(
	newArgv=("$@"); declare -p newArgv
	declare -p workdir
	export