File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,6 @@ function usage() {
30
30
echo " $0 [ios|macos|all] [<release tag>]"
31
31
}
32
32
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
-
44
33
function download() {
45
34
local plat=$1
46
35
@@ -70,6 +59,7 @@ function extract(){
70
59
if [[ -f " $oname " ]]; then
71
60
mkdir -p ../product/$plat /universal
72
61
unzip -oq " $oname " -d ../product/$plat /universal
62
+ echo " extract zip file"
73
63
if command -v tree > /dev/null 2>&1 ; then
74
64
tree -L 2 ../product/$plat /universal
75
65
fi
@@ -79,6 +69,18 @@ function extract(){
79
69
fi
80
70
}
81
71
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
+
82
84
function install(){
83
85
download " $* "
84
86
extract " $* "
You can’t perform that action at this time.
0 commit comments