| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | set -o pipefail |
| 5 | |
| 6 | ## print info aobut compiler |
| 7 | TC=`$COMPILER --version` |
| 8 | echo "True compiler is $TC" |
| 9 | |
| 10 | ## only build for one compiler |
| 11 | #VALID=`g++ --version | grep 4.9 | wc -l` |
| 12 | #if [[ "$VALID" -eq "0" ]]; then |
| 13 | # exit 0; |
| 14 | #fi |
| 15 | |
| 16 | if [ -d "${BOOST_ROOT}" ]; then |
| 17 | (cd "${BOOST_ROOT}" |
| 18 | ./bootstrap.sh --with-libraries="${BOOST_LIBS}" |
| 19 | ./b2 threading=multi --prefix="${BOOST_ROOT}" -d0 install |
| 20 | ) |
| 21 | fi |