2323# --prefix=<absolute-path> Library install location (defaults to /usr/local).
2424# --disable-shared Disables shared library builds.
2525# --disable-static Disables static library builds.
26+ # --verbose Display verbose output (defaults to quiet on called tooling).
2627# --help Display usage, overriding script execution.
2728#
2829# Verified on Ubuntu 14.04, requires gcc-4.8 or newer.
@@ -46,17 +47,13 @@ SEQUENTIAL=1
4647if [[ $GIT_CLONE_PARAMS ]]; then
4748 display_message " Using shell-defined GIT_CLONE_PARAMS value."
4849else
49- GIT_CLONE_PARAMS=" "
50+ GIT_CLONE_PARAMS=" --depth 1 --single-branch "
5051fi
5152
5253# The default build directory.
5354# ------------------------------------------------------------------------------
5455BUILD_DIR=" build-libbitcoin-node"
5556
56- # Git clone parameters.
57- # ------------------------------------------------------------------------------
58- GIT_CLONE_PARAMS=" --depth 1 --single-branch"
59-
6057PRESUMED_CI_PROJECT_PATH=$( pwd)
6158
6259# ICU archive.
@@ -156,12 +153,17 @@ make_jobs()
156153 local JOBS=$1
157154 shift 1
158155
156+ VERBOSITY=" "
157+ if [[ DISPLAY_VERBOSE ]]; then
158+ VERBOSITY=" VERBOSE=1"
159+ fi
160+
159161 SEQUENTIAL=1
160162 # Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]).
161163 if [[ $JOBS > $SEQUENTIAL ]]; then
162- make -j" $JOBS " " $@ "
164+ make -j" $JOBS " " $@ " $VERBOSITY
163165 else
164- make " $@ "
166+ make " $@ " $VERBOSITY
165167 fi
166168}
167169
@@ -245,6 +247,7 @@ parse_command_line_options()
245247 case $OPTION in
246248 # Standard script options.
247249 (--help) DISPLAY_HELP=" yes" ;;
250+ (--verbose) DISPLAY_VERBOSE=" yes" ;;
248251
249252 # Standard build options.
250253 (--prefix=* ) PREFIX=" ${OPTION#* =} " ;;
@@ -317,7 +320,7 @@ set_os_specific_compiler_settings()
317320
318321link_to_standard_library ()
319322{
320- if [[ ($OS == Linux && $CC == " clang" ) || ($OS == OpenBSD) ]]; then
323+ if [[ ($OS == Linux && $CC == clang* ) || ($OS == OpenBSD) ]]; then
321324 export LDLIBS=" -l$STDLIB $LDLIBS "
322325 export CXXFLAGS=" -stdlib=lib$STDLIB $CXXFLAGS "
323326 fi
@@ -509,9 +512,18 @@ extract_from_tarball()
509512 push_directory " $TARGET_DIR "
510513
511514 # Extract the source locally.
512- wget --output-document " $ARCHIVE " " $URL "
513- tar --extract --file " $ARCHIVE " " --$COMPRESSION " --strip-components=1
515+ WGET=" wget --quiet"
516+ TAR=" tar"
517+
518+ if [[ $DISPLAY_VERBOSE ]]; then
519+ WGET=" wget --verbose"
520+ TAR=" tar --verbose"
521+ fi
522+
523+ $WGET --output-document " $ARCHIVE " " $URL "
524+ $TAR --extract --file " $ARCHIVE " " --$COMPRESSION " --strip-components=1
514525
526+ display_message " Completed download and extraction successfully."
515527 pop_directory
516528}
517529
@@ -751,7 +763,7 @@ initialize_boost_configuration()
751763 BOOST_TOOLSET=" toolset=$CC "
752764 fi
753765
754- if [[ ($OS == Linux && $CC == " clang" ) || ($OS == OpenBSD) ]]; then
766+ if [[ ($OS == Linux && $CC == clang* ) || ($OS == OpenBSD) ]]; then
755767 STDLIB_FLAG=" -stdlib=lib$STDLIB "
756768 BOOST_CXXFLAGS=" cxxflags=$STDLIB_FLAG "
757769 BOOST_LINKFLAGS=" linkflags=$STDLIB_FLAG "
0 commit comments