Skip to content

Commit e6e8fdf

Browse files
committed
add log
1 parent 87ff6f6 commit e6e8fdf

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

tools/install-pre-lib.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ function usage() {
3030
echo "$0 [ios|macos|all] [<release tag>]"
3131
}
3232

33-
function fix_prefix(){
34-
local plat=$1
35-
local UNI_PC_DIR="build/product/$plat/universal/$LIB_NAME/lib/pkgconfig"
36-
if ls ${UNI_PC_DIR}/*.pc >/dev/null 2>&1;then
37-
echo "fix $plat $LIB_NAME pc file prefix"
38-
p=$(cd "build/product/$plat/universal/$LIB_NAME";pwd)
39-
escaped_p=$(echo $p | sed 's/\//\\\//g')
40-
sed -i "" "s/^prefix=.*/prefix=$escaped_p/" "$UNI_PC_DIR/"*.pc
41-
fi
42-
}
43-
4433
function download() {
4534
local plat=$1
4635

@@ -70,6 +59,7 @@ function extract(){
7059
if [[ -f "$oname" ]];then
7160
mkdir -p ../product/$plat/universal
7261
unzip -oq "$oname" -d ../product/$plat/universal
62+
echo "extract zip file"
7363
if command -v tree >/dev/null 2>&1; then
7464
tree -L 2 ../product/$plat/universal
7565
fi
@@ -79,6 +69,18 @@ function extract(){
7969
fi
8070
}
8171

72+
function fix_prefix(){
73+
local plat=$1
74+
local UNI_PC_DIR="build/product/$plat/universal/$LIB_NAME/lib/pkgconfig"
75+
ls ${UNI_PC_DIR}/*.pc
76+
if ls ${UNI_PC_DIR}/*.pc >/dev/null 2>&1;then
77+
echo "fix $plat $LIB_NAME pc file prefix"
78+
p=$(cd "build/product/$plat/universal/$LIB_NAME";pwd)
79+
escaped_p=$(echo $p | sed 's/\//\\\//g')
80+
sed -i "" "s/^prefix=.*/prefix=$escaped_p/" "$UNI_PC_DIR/"*.pc
81+
fi
82+
}
83+
8284
function install(){
8385
download "$*"
8486
extract "$*"

0 commit comments

Comments
 (0)