1#!/bin/sh 2# Copyright (C) 2005, 2006 Douglas Gregor. 3# Copyright (C) 2006 The Trustees of Indiana University 4# Copyright (C) 2010 Bryce Lelbach 5# Copyright 2018-2020 Rene Rivera 6# 7# Distributed under the Boost Software License, Version 1.0. 8# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 9 10# Build b2 11echo "Building the B2 engine.." 12pwd=`pwd` 13( cd "./src/engine" && ./build.sh "$*" ) 14if [ $? -ne 0 ]; then 15 echo 16 echo "Failed to build the B2 engine." 1>&2 17 exit 1 18fi 19cd "$pwd" 20cp "./src/engine/b2" . 21 22cat << EOF 23 24Building is done. To install, run: 25 26 ./b2 install --prefix=<DIR> 27 28EOF 29