diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-12-21 01:18:21 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-12-21 01:18:21 (GMT) |
commit | 43e1d6150db62e35fd28aacbd805beaa6a903c70 (patch) | |
tree | 59ff449c3ce8be5a7a2fd270772ea9d591b5e63b /scripts/uni-build-dependencies.sh | |
parent | 0de73575287d16be8e5004d19dbdc942cb917537 (diff) |
download and build bison if needed. detect better on BSD
Diffstat (limited to 'scripts/uni-build-dependencies.sh')
-rwxr-xr-x | scripts/uni-build-dependencies.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh index 0a16886..1b15e53 100755 --- a/scripts/uni-build-dependencies.sh +++ b/scripts/uni-build-dependencies.sh @@ -21,6 +21,22 @@ printUsage() echo } +build_bison() +{ + version=$1 + echo "Building bison" $version + cd $BASEDIR/src + rm -rf bison-$version + if [ ! -f bison-$version.tar.gz ]; then + curl --insecure -O http://ftp.gnu.org/gnu/bison/bison-$version.tar.gz + fi + tar zxf bison-$version.tar.gz + cd bison-$version + ./configure --prefix=$DEPLOYDIR + make -j$NUMCPU + make install +} + build_git() { version=$1 @@ -312,6 +328,10 @@ if [ ! "`command -v curl`" ]; then build_curl 7.26.0 fi +if [ ! "`command -v bison`" ]; then + build_bison 2.6.1 +fi + # NB! For cmake, also update the actual download URL in the function if [ ! "`command -v cmake`" ]; then build_cmake 2.8.8 |