From 1fcd5d1067254c40921df17b8de906c81934077a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Oct 2017 13:31:52 +0200 Subject: Add support for parallel bootstrap on Linux, Mac OS, and FreeBSD --- etc/bootstrap/bbot-bootstrap-freebsd.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 etc/bootstrap/bbot-bootstrap-freebsd.sh (limited to 'etc/bootstrap/bbot-bootstrap-freebsd.sh') diff --git a/etc/bootstrap/bbot-bootstrap-freebsd.sh b/etc/bootstrap/bbot-bootstrap-freebsd.sh new file mode 100755 index 0000000..8a86696 --- /dev/null +++ b/etc/bootstrap/bbot-bootstrap-freebsd.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# file : etc/bootstrap/bbot-bootstrap-freebsd.sh +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : TBC; see accompanying LICENSE file + +# Note: install GNU make with 'pkg install gmake'. +# + +if ! jobs="$(sysctl -n hw.ncpu)"; then + jobs=1 +fi + +"$(dirname "$0")/bbot-bootstrap.sh" \ + --make gmake \ + --make "-j$jobs" \ + "$@" -- cgit v1.1