File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -50,19 +50,18 @@ function download() {
50
50
if [[ $? -eq 0 ]]; then
51
51
mv " $tname " " $oname "
52
52
fi
53
- ls build/pre/
54
53
}
55
54
56
55
function extract(){
57
56
local plat=$1
58
57
local oname=" build/pre/${TAG} -$plat .zip"
59
-
58
+
60
59
if [[ -f " $oname " ]]; then
61
- mkdir -p .. /product/$plat /universal
62
- unzip -oq " $oname " -d .. /product/$plat /universal
60
+ mkdir -p build /product/$plat /universal
61
+ unzip -oq " $oname " -d build /product/$plat /universal
63
62
echo " extract zip file"
64
63
if command -v tree > /dev/null 2>&1 ; then
65
- tree -L 2 .. /product/$plat /universal
64
+ tree -L 2 build /product/$plat /universal
66
65
fi
67
66
else
68
67
echo " you need download ${oname} firstly."
@@ -73,7 +72,7 @@ function extract(){
73
72
function fix_prefix(){
74
73
local plat=$1
75
74
local UNI_PC_DIR=" build/product/$plat /universal/$LIB_NAME /lib/pkgconfig"
76
- ls ${UNI_PC_DIR} / * .pc
75
+
77
76
if ls ${UNI_PC_DIR} /* .pc > /dev/null 2>&1 ; then
78
77
echo " fix $plat $LIB_NAME pc file prefix"
79
78
p=$( cd " build/product/$plat /universal/$LIB_NAME " ; pwd)
You can’t perform that action at this time.
0 commit comments