aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bootstrap/bbot-bootstrap-macos.sh7
-rw-r--r--etc/bootstrap/bbot-bootstrap-mingw.bat3
-rw-r--r--etc/bootstrap/bbot-bootstrap-msvc-14.bat3
-rw-r--r--etc/bootstrap/bbot-bootstrap-msvc-15.bat3
-rwxr-xr-xetc/bootstrap/bbot-bootstrap.sh5
5 files changed, 16 insertions, 5 deletions
diff --git a/etc/bootstrap/bbot-bootstrap-macos.sh b/etc/bootstrap/bbot-bootstrap-macos.sh
index 8fee3b9..039e802 100755
--- a/etc/bootstrap/bbot-bootstrap-macos.sh
+++ b/etc/bootstrap/bbot-bootstrap-macos.sh
@@ -2,8 +2,5 @@
# open -a Terminal -n -F ~/bbot-bootstrap-macos.sh
-if ~/bbot-bootstrap.sh --cxx clang++ --build /tmp \
- --environments "$HOME/environments"; then
- sleep 2
- sudo shutdown -h now
-fi
+~/bbot-bootstrap.sh --cxx clang++ --build /tmp \
+ --environments "$HOME/environments"
diff --git a/etc/bootstrap/bbot-bootstrap-mingw.bat b/etc/bootstrap/bbot-bootstrap-mingw.bat
index b64d977..1280c1c 100644
--- a/etc/bootstrap/bbot-bootstrap-mingw.bat
+++ b/etc/bootstrap/bbot-bootstrap-mingw.bat
@@ -165,6 +165,9 @@ bbot-worker --bootstrap >manifest
curl -s -S --upload-file manifest "tftp://%tftp%/manifest"
@if errorlevel 1 goto error
+shutdown /s /t 10
+@if errorlevel 1 goto error
+
@echo off
goto end
diff --git a/etc/bootstrap/bbot-bootstrap-msvc-14.bat b/etc/bootstrap/bbot-bootstrap-msvc-14.bat
index ec63994..376fe69 100644
--- a/etc/bootstrap/bbot-bootstrap-msvc-14.bat
+++ b/etc/bootstrap/bbot-bootstrap-msvc-14.bat
@@ -158,6 +158,9 @@ bbot-worker --bootstrap >manifest
curl -s -S --upload-file manifest "tftp://%tftp%/manifest"
@if errorlevel 1 goto error
+shutdown /s /t 10
+@if errorlevel 1 goto error
+
@echo off
goto end
diff --git a/etc/bootstrap/bbot-bootstrap-msvc-15.bat b/etc/bootstrap/bbot-bootstrap-msvc-15.bat
index b33e990..87d36b5 100644
--- a/etc/bootstrap/bbot-bootstrap-msvc-15.bat
+++ b/etc/bootstrap/bbot-bootstrap-msvc-15.bat
@@ -156,6 +156,9 @@ bbot-worker --bootstrap >manifest
curl -s -S --upload-file manifest "tftp://%tftp%/manifest"
@if errorlevel 1 goto error
+shutdown /s /t 10
+@if errorlevel 1 goto error
+
@echo off
goto end
diff --git a/etc/bootstrap/bbot-bootstrap.sh b/etc/bootstrap/bbot-bootstrap.sh
index 9e7ace8..ec046ca 100755
--- a/etc/bootstrap/bbot-bootstrap.sh
+++ b/etc/bootstrap/bbot-bootstrap.sh
@@ -137,3 +137,8 @@ run rm -r "$config"
#
run bbot-worker --bootstrap >manifest
run curl -s -S --upload-file manifest "tftp://$tftp/manifest"
+
+# Wait a bit and shutdown.
+#
+sleep 2
+sudo shutdown -h now