Overview
Comment: | Updated to wait for the remote host to come up before doing remote builds |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | 999692e78c531811e39ff1745b6f1d9ac111cc04 |
User & Date: | rkeene on 2016-04-13 15:57:17 |
Other Links: | manifest | tags |
Context
2016-04-26
| ||
16:15 | Added support for forcing Itcl 3.x to be built with newer versions of Tcl and increased version of Itcl to 3.4.3 check-in: 7c3a88c4dc user: rkeene tags: trunk | |
2016-04-13
| ||
15:57 | Updated to wait for the remote host to come up before doing remote builds check-in: 999692e78c user: rkeene tags: trunk | |
15:32 | Updated download program to support old versions of bash check-in: c86d4fcb08 user: rkeene tags: trunk | |
Changes
Modified build/make-kit-remote from [e83aa4603b] to [e991615aec].
1 1 #! /bin/bash 2 2 3 3 TARGET="$1" 4 4 shift 5 5 6 6 buildid="$(( hostname; id -u; pwd ) | openssl sha1 | sed 's@^.*= *@@')" 7 7 workdir="/tmp/work-kitcreator-${buildid}" 8 + 9 +hostUp='0' 10 +for try in {1..3}; do 11 + checkOk="$(timeout 300 ssh -q "${TARGET}" 'echo ok' 2>/dev/null)" 12 + 13 + if [ "${checkOk}" = 'ok' ]; then 14 + hostUp='1' 15 + break 16 + fi 17 + 18 + sleep 10 19 +done 20 + 21 +if [ "${hostUp}" != '1' ]; then 22 + echo "Unable to establish a link to the remote system." >&2 23 + 24 + exit 1 25 +fi 8 26 9 27 rsync -aq --delete -e ssh . "${TARGET}:${workdir}/" || exit 1 10 28 11 29 ( 12 30 newArgv=("$@"); declare -p newArgv 13 31 declare -p workdir 14 32 export