bootstrap.sh 622 B

12345678910111213141516171819202122232425262728
  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. # Build b2
  10. echo "Building the B2 engine.."
  11. pwd=`pwd`
  12. "${pwd}/src/engine/build.sh" "$@"
  13. if [ $? -ne 0 ]; then
  14. echo
  15. echo "Failed to build the B2 engine." 1>&2
  16. exit 1
  17. fi
  18. cd "$pwd"
  19. cp "./src/engine/b2" .
  20. cat << EOF
  21. Building is done. To install, run:
  22. ./b2 install --prefix=<DIR>
  23. EOF