Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions GetToolDAQ.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

init=1
tooldaq=1
boostflag=1
Expand Down Expand Up @@ -110,17 +112,22 @@ fi

if [ $zmq -eq 1 ]
then
git clone https://github.com/ToolDAQ/zeromq-4.0.7.git

mkdir zeromq-4.0.7
cd zeromq-4.0.7
git clone https://github.com/ToolDAQ/zeromq-4.0.7.git src

prefix=$PWD
cd src

./configure --prefix=`pwd`
./configure --prefix="$prefix"
make -j $threads
make install
cp -v include/zmq.hpp "$prefix/include"

export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH"
unset prefix

cd ../
cd ../..
fi

if [ $boostflag -eq 1 ]
Expand All @@ -133,7 +140,7 @@ then
rm -rf INSTALL
mkdir install

./bootstrap.sh --prefix=`pwd`/install/ > /dev/null 2>/dev/null
./bootstrap.sh --prefix="`pwd`/install/" --without-libraries=python > /dev/null 2>/dev/null
./b2 install iostreams -j $threads

export LD_LIBRARY_PATH=`pwd`/install/lib:$LD_LIBRARY_PATH
Expand Down