File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 1717
1818set -e
1919
20- EDITION=$1
21- PLAT=$2
22- VER=$3
20+ PLAT=$1
21+ VER=$2
2322
2423if test -z $PLAT ; then
2524 PLAT=' all'
@@ -30,17 +29,17 @@ c_dir="$PWD"
3029
3130function usage() {
3231 echo " === useage ===================="
33- echo " Download precompiled ijk or github edition libs from github,The usage is as follows:"
34- echo " $0 ijk|github [ios|macos|all] [<release tag>]"
32+ echo " Download precompiled libs from github,The usage is as follows:"
33+ echo " $0 [ios|macos|all] [<release tag>]"
3534}
3635
3736function download() {
3837 local plat=$1
39- echo " ===[download $plat $EDITION $ VER ]===================="
38+ echo " ===[download $plat $VER ]===================="
4039 mkdir -p build/pre
4140 cd build/pre
42- local fname=" $plat -universal-$VER - $EDITION .zip"
43- local url=" https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$VER - $EDITION /$fname "
41+ local fname=" $plat -universal-$VER .zip"
42+ local url=" https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$VER /$fname "
4443 echo " $url "
4544 curl -LO " $url "
4645 mkdir -p ../product/$plat /universal
@@ -50,12 +49,6 @@ function download() {
5049 cd - > /dev/null
5150}
5251
53- if [[ " $EDITION " != ' ijk' && " $EDITION " != ' github' ]]; then
54- echo ' wrong edition,use ijk or github!'
55- usage
56- exit
57- fi
58-
5952if [[ " $PLAT " != ' ios' && " $PLAT " != ' macos' && " $PLAT " != ' all' ]]; then
6053 echo ' wrong plat,use ios or macos or all!'
6154 usage
You can’t perform that action at this time.
0 commit comments