diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-12-23 18:12:20 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-12-23 18:12:20 +0100 |
commit | 1a4a80fc249a0aab792e59eb301982ef2da63222 (patch) | |
tree | d9adee075d6f3cc535cd96c91ae04c195bd79d44 /maintainer/am-ft | |
parent | 2f248b0bc6047142649696e22627c584b9a2cdf5 (diff) | |
download | automake-1a4a80fc249a0aab792e59eb301982ef2da63222.tar.gz |
maintainer: am-ft: add option to cater to clock skews
* maintainer/am-ft: Add option '-S', giving a number of seconds to sleep
after copying the tarball to the remote system and before unpacking,
building and testing it. This is to cater to situations where the clock
of the remote system is skewed (in the past) w.r.t. the clock the local
system the tarball has been built on.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'maintainer/am-ft')
-rwxr-xr-x | maintainer/am-ft | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/maintainer/am-ft b/maintainer/am-ft index bb07c165c..81a1dc5e2 100755 --- a/maintainer/am-ft +++ b/maintainer/am-ft @@ -35,10 +35,14 @@ cmd=' remote= interactive=1 +maybe_sleep=: while test $# -gt 0; do case $1 in -b|--batch) interactive=0;; -c|--command) cmd=${2-}; shift;; + # Useful to avoid spurious errors due to skewed clocks between + # the system where the tarball is built and the target system. + -S|--sleep) maybe_sleep="sleep ${2-}"; shift;; -*) fatal "'$1': invalid option";; *) remote=$1; shift; break;; esac @@ -92,6 +96,8 @@ set -x scp $tarball $remote:tmp/ +$maybe_sleep + # Multiple '-t' to force tty allocation. ssh -t -t $remote " set -x; set -e; set -u; |