Skip to content

Commit 2a88bf2

Browse files
igchorguptask
authored andcommitted
Add extra param to build-package.sh
1 parent 6ba58bb commit 2a88bf2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

contrib/build-package.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ build_tests=
7878
show_help=
7979
many_jobs=
8080
verbose=
81-
while getopts :BSdhijtv param
81+
install_path=
82+
while getopts :BSdhijtvI: param
8283
do
8384
case $param in
8485
i) install=yes ;;
@@ -89,6 +90,7 @@ do
8990
v) verbose=yes ;;
9091
j) many_jobs=yes ;;
9192
t) build_tests=yes ;;
93+
I) install_path=${OPTARG} ; install=yes ;;
9294
?) die "unknown option. See -h for help."
9395
esac
9496
done
@@ -159,6 +161,7 @@ case "$1" in
159161
REPODIR=cachelib/external/$NAME
160162
SRCDIR=$REPODIR
161163
external_git_clone=yes
164+
external_git_tag=8.0.1
162165
cmake_custom_params="-DBUILD_SHARED_LIBS=ON"
163166
if test "$build_tests" = "yes" ; then
164167
cmake_custom_params="$cmake_custom_params -DFMT_TEST=YES"
@@ -275,7 +278,7 @@ test -d cachelib || die "expected 'cachelib' directory not found in $PWD"
275278

276279

277280
# After ensuring we are in the correct directory, set the installation prefix"
278-
PREFIX="$PWD/opt/cachelib/"
281+
PREFIX=${install_path:-"$PWD/opt/cachelib/"}
279282
CMAKE_PARAMS="$CMAKE_PARAMS -DCMAKE_INSTALL_PREFIX=$PREFIX"
280283
CMAKE_PREFIX_PATH="$PREFIX/lib/cmake:$PREFIX/lib64/cmake:$PREFIX/lib:$PREFIX/lib64:$PREFIX:${CMAKE_PREFIX_PATH:-}"
281284
export CMAKE_PREFIX_PATH

0 commit comments

Comments
 (0)