1- #! /usr/bin/bash
1+ #! /usr/bin/env bash
22
33# Licensed to the Apache Software Foundation (ASF) under one or more
44# contributor license agreements. See the NOTICE file distributed with
@@ -156,7 +156,7 @@ BuildLibevent()
156156 else
157157 wget https://github.com/libevent/libevent/archive/${fname_libevent_down} -O libevent-${fname_libevent_down}
158158 fi
159- unzip -o ${fname_libevent}
159+ unzip -o ${fname_libevent} > libevent.txt 2>&1
160160 if [ $? -ne 0 ]; then
161161 exit 1
162162 fi
@@ -198,7 +198,7 @@ BuildJsonCPP()
198198 else
199199 wget https://github.com/open-source-parsers/jsoncpp/archive/${fname_jsoncpp_down} -O jsoncpp-${fname_jsoncpp_down}
200200 fi
201- unzip -o ${fname_jsoncpp}
201+ unzip -o ${fname_jsoncpp} > json.txt 2>&1
202202 if [ $? -ne 0 ]; then
203203 exit 1
204204 fi
@@ -242,7 +242,7 @@ BuildBoost()
242242 else
243243 wget http://sourceforge.net/projects/boost/files/boost/${fname_boost_down}
244244 fi
245- tar -zxvf ${fname_boost}
245+ tar -zxvf ${fname_boost} > boost.txt 2>&1
246246 boost_dir=` ls | grep boost | grep .* [^gz]$`
247247 cd ${boost_dir}
248248 if [ $? -ne 0 ]; then
@@ -253,7 +253,8 @@ BuildBoost()
253253 exit 1
254254 fi
255255 echo " build boost static #####################"
256- ./b2 cflags=-fPIC cxxflags=-fPIC --with-atomic --with-thread --with-system --with-chrono --with-date_time --with-log --with-regex --with-serialization --with-filesystem --with-locale --with-iostreams threading=multi link=static runtime-link=static release install --prefix=${install_lib_dir}
256+ pwd
257+ ./b2 cflags=-fPIC cxxflags=-fPIC --with-atomic --with-thread --with-system --with-chrono --with-date_time --with-log --with-regex --with-serialization --with-filesystem --with-locale --with-iostreams threading=multi link=static release install --prefix=${install_lib_dir} 1> boostMakeLog.txt
257258 if [ $? -ne 0 ]; then
258259 exit 1
259260 fi
@@ -296,7 +297,7 @@ BuildGoogleTest()
296297 wget https://github.com/abseil/googletest/archive/release-1.8.1.tar.gz
297298 fi
298299 if [ ! -d " googletest-release-1.8.1" ]; then
299- tar -zxvf release-1.8.1.tar.gz
300+ tar -zxvf release-1.8.1.tar.gz > googletest.txt 2>&1
300301 fi
301302 cd googletest-release-1.8.1
302303 mkdir build; cd build
0 commit comments