aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-bootstrap-macos.sh
blob: e7f7be80b9ab9d98a0b199a5e6601ac166dc0675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# file      : etc/bootstrap/bbot-bootstrap-macos.sh
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license   : TBC; see accompanying LICENSE file

# open -a Terminal -n -F ~/bbot-bootstrap-macos.sh

if ! jobs="$(sysctl -n hw.ncpu)"; then
  jobs=1
fi

"$(dirname "$0")/bbot-bootstrap.sh"   \
  --cxx clang++                       \
  --build /tmp                        \
  --environments "$HOME/environments" \
  --make make                         \
  --make "-j$jobs"                    \
  "$@"