Skip to content

Commit 0299a29

Browse files
anandamideShakyanczentgr
authored andcommitted
[native] Allow options for wget and tar commands during setup
1 parent f02046f commit 0299a29

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

presto-native-execution/scripts/setup-centos.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export nproc=$(getconf _NPROCESSORS_ONLN)
1818
export CC=/opt/rh/gcc-toolset-12/root/bin/gcc
1919
export CXX=/opt/rh/gcc-toolset-12/root/bin/g++
2020

21+
WGET_OPTIONS=${WGET_OPTIONS:-""}
22+
TAR_OPTIONS=${TAR_OPTIONS:-"-v"}
23+
2124
CPU_TARGET="${CPU_TARGET:-avx}"
2225
SCRIPT_DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
2326
if [ -f "${SCRIPT_DIR}/setup-centos9.sh" ]
@@ -34,8 +37,8 @@ function install_presto_deps_from_package_managers {
3437
}
3538

3639
function install_gperf {
37-
wget http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz &&
38-
tar xvfz gperf-3.1.tar.gz &&
40+
wget ${WGET_OPTIONS} http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz &&
41+
tar ${TAR_OPTIONS} -xzf gperf-3.1.tar.gz &&
3942
cd gperf-3.1 &&
4043
./configure --prefix=/usr/local/gperf/3_1 &&
4144
make "-j$(nproc)" &&

0 commit comments

Comments
 (0)