summaryrefslogtreecommitdiff
path: root/.github/scripts/build-macos.sh
blob: 73c35a6a22d38c8635741f61425e6e202a63d4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
export ERL_TOP="$(pwd)"
export ERLC_USE_SERVER=true
export RELEASE_ROOT="$ERL_TOP/release"
BUILD_DOCS=false

if [ "$1" = "build_docs" ]; then
    BUILD_DOCS=true
    shift
fi

./otp_build configure $*
./otp_build boot -a
./otp_build release -a "$RELEASE_ROOT"
if $BUILD_DOCS; then
    make release_docs DOC_TARGETS=chunks
fi