aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-bootstrap.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-10-19 12:32:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-19 12:32:00 +0200
commit89d5fb99da99c95a72f0ae69b8116ef3a04333ca (patch)
treea1e5c9d720957dfe0a63e0cc9e13b4122981d3f7 /etc/bootstrap/bbot-bootstrap.sh
parent3b01eefe9cfe31bb0699f0da0cea10c8043ff133 (diff)
Add network timeout of 600 seconds to bootstrap scripts/batch files
Diffstat (limited to 'etc/bootstrap/bbot-bootstrap.sh')
-rwxr-xr-xetc/bootstrap/bbot-bootstrap.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/bootstrap/bbot-bootstrap.sh b/etc/bootstrap/bbot-bootstrap.sh
index ec046ca..e5ffe80 100755
--- a/etc/bootstrap/bbot-bootstrap.sh
+++ b/etc/bootstrap/bbot-bootstrap.sh
@@ -71,14 +71,15 @@ while test $# -ne 0; do
esac
done
-# Defaults that can be changed for testing.
+# Defaults that can be changed for testing or further customization.
#
-# Note: build_options is an array-like (expanded unquoted).
+# Note: build_options is array-like (expanded unquoted).
#
tftp="196.254.111.222"
install="/usr/local"
build_options=
verbose=3
+timeout=600
#install="/tmp/bbot-install"
#tftp="127.0.0.1:55123"
@@ -120,7 +121,7 @@ run rm trust
#
bstrap="$(echo build2-toolchain-*)"
run cd "$bstrap"
-run ./build.sh --trust "$trust" $build_options "$cxx"
+run ./build.sh --timeout "$timeout" --trust "$trust" $build_options "$cxx"
run cd ..
run rm -r "$bstrap"
@@ -128,7 +129,7 @@ run rm -r "$bstrap"
#
config="$(echo build2-toolchain-*)"
run cd "$config"
-run bpkg build --yes bbot
+run bpkg --fetch-timeout "$timeout" build --yes bbot
run bpkg install bbot
run cd ..
run rm -r "$config"