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() {
5050 if [[ $? -eq 0 ]]; then
5151 mv " $tname " " $oname "
5252 fi
53- ls build/pre/
5453}
5554
5655function extract(){
5756 local plat=$1
5857 local oname=" build/pre/${TAG} -$plat .zip"
59-
58+
6059 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
6362 echo " extract zip file"
6463 if command -v tree > /dev/null 2>&1 ; then
65- tree -L 2 .. /product/$plat /universal
64+ tree -L 2 build /product/$plat /universal
6665 fi
6766 else
6867 echo " you need download ${oname} firstly."
@@ -73,7 +72,7 @@ function extract(){
7372function fix_prefix(){
7473 local plat=$1
7574 local UNI_PC_DIR=" build/product/$plat /universal/$LIB_NAME /lib/pkgconfig"
76- ls ${UNI_PC_DIR} / * .pc
75+
7776 if ls ${UNI_PC_DIR} /* .pc > /dev/null 2>&1 ; then
7877 echo " fix $plat $LIB_NAME pc file prefix"
7978 p=$( cd " build/product/$plat /universal/$LIB_NAME " ; pwd)
You can’t perform that action at this time.
0 commit comments