aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-bootstrap-linux.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-10-20 13:31:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-20 13:31:52 +0200
commit1fcd5d1067254c40921df17b8de906c81934077a (patch)
tree71dc34b096c6ee9544d8e99c6240b7fbf4d3078d /etc/bootstrap/bbot-bootstrap-linux.sh
parent3ddab9d7360213cda421ac25f62cbf7ef92b513b (diff)
Add support for parallel bootstrap on Linux, Mac OS, and FreeBSD
Diffstat (limited to 'etc/bootstrap/bbot-bootstrap-linux.sh')
-rwxr-xr-xetc/bootstrap/bbot-bootstrap-linux.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/bootstrap/bbot-bootstrap-linux.sh b/etc/bootstrap/bbot-bootstrap-linux.sh
new file mode 100755
index 0000000..0aa408d
--- /dev/null
+++ b/etc/bootstrap/bbot-bootstrap-linux.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# file : etc/bootstrap/bbot-bootstrap-linux.sh
+# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+# license : TBC; see accompanying LICENSE file
+
+if ! jobs="$(nproc)"; then
+ jobs=1
+fi
+
+"$(dirname "$0")/bbot-bootstrap.sh" \
+ --make make \
+ --make "-j$jobs" \
+ "$@"