function sprdLunch()
{
    declare -a arrProj
    arrProj=`find out/target/product -name previous_build_config.mk`

    if [ ${#arrProj[@]} -eq 1 ]; then
        preCfg=`cat ${arrProj[0]}`
        temp1=${preCfg##* } # get full config
        lunName=${temp1%-*} # get lunch name

        echo -n "lunch pre-config: $lunName? [ yes | no] "
        read aNum
        if [ $aNum=y -o $aNum=yes -o x$aNum = x ];then
            lunch $lunName
        else
            lunch
        fi  
    fi  

    unset arrProj
    unset preCfg
    unset temp1
    unset lunName
}

相关文章:

  • 2021-09-01
  • 2022-01-15
  • 2022-12-23
  • 2021-04-04
  • 2021-04-05
猜你喜欢
  • 2021-12-20
  • 2021-05-19
相关资源
相似解决方案