在build/envsetup.sh中,参照croot()的实现,实现了新的cout功能,可以快速切换到产品输出目录。
function cout()
{
T=$(gettop)
if [ "$T" ]; then
if [ "$ANDROID_PRODUCT_OUT" ]; then
cd $ANDROID_PRODUCT_OUT
else
echo "Couldn't locate the out directory. Try use lunch first "
fi
else
echo "Couldn't locate the top of the tree. Try setting TOP."
fi
}
本文介绍了一个名为cout的功能,该功能实现在build/envsetup.sh文件中。通过使用此功能,用户能够快速地从当前目录切换到产品的输出目录,前提是已设置了ANDROID_PRODUCT_OUT变量。若未设置相关环境变量,则会提示用户进行相应的操作。
2648

被折叠的 条评论
为什么被折叠?



