1
- #! /usr/bin/bash
1
+ #! /usr/bin/env bash
2
2
3
3
# Licensed to the Apache Software Foundation (ASF) under one or more
4
4
# contributor license agreements. See the NOTICE file distributed with
@@ -156,7 +156,7 @@ BuildLibevent()
156
156
else
157
157
wget https://github.com/libevent/libevent/archive/${fname_libevent_down} -O libevent-${fname_libevent_down}
158
158
fi
159
- unzip -o ${fname_libevent}
159
+ unzip -o ${fname_libevent} > libevent.txt 2>&1
160
160
if [ $? -ne 0 ]; then
161
161
exit 1
162
162
fi
@@ -198,7 +198,7 @@ BuildJsonCPP()
198
198
else
199
199
wget https://github.com/open-source-parsers/jsoncpp/archive/${fname_jsoncpp_down} -O jsoncpp-${fname_jsoncpp_down}
200
200
fi
201
- unzip -o ${fname_jsoncpp}
201
+ unzip -o ${fname_jsoncpp} > json.txt 2>&1
202
202
if [ $? -ne 0 ]; then
203
203
exit 1
204
204
fi
@@ -242,7 +242,7 @@ BuildBoost()
242
242
else
243
243
wget http://sourceforge.net/projects/boost/files/boost/${fname_boost_down}
244
244
fi
245
- tar -zxvf ${fname_boost}
245
+ tar -zxvf ${fname_boost} > boost.txt 2>&1
246
246
boost_dir=` ls | grep boost | grep .* [^gz]$`
247
247
cd ${boost_dir}
248
248
if [ $? -ne 0 ]; then
@@ -253,7 +253,8 @@ BuildBoost()
253
253
exit 1
254
254
fi
255
255
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
257
258
if [ $? -ne 0 ]; then
258
259
exit 1
259
260
fi
@@ -296,7 +297,7 @@ BuildGoogleTest()
296
297
wget https://github.com/abseil/googletest/archive/release-1.8.1.tar.gz
297
298
fi
298
299
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
300
301
fi
301
302
cd googletest-release-1.8.1
302
303
mkdir build; cd build
0 commit comments