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
}