代码拉取完成,页面将自动刷新
#!/bin/sh
# The script accepts one parameter, which can be "init", "start" or "finish"
# Before first use run the script with "init" parameter
# To get the changes from AOSP repository do following:
# 1. Run the script with "start" parameter
# 2. Perform "pull" from AOSP remote for "android" and "tools-base" repositories using IntelliJ IDEA,
# resolve all conflicts, commit, check that everything is compiled correctly and the tests are passed
# 3. Run the script with "finish" parameter
if [ "$1" = "init" ]; then
git remote add AOSP https://android.googlesource.com/platform/tools/adt/idea
cd tools-base
git remote add AOSP https://android.googlesource.com/platform/tools/base
elif [ "$1" = "start" ]; then
git branch -d android-tmp
git checkout -b android-tmp
cd tools-base
git branch -d android-tmp
git checkout -b android-tmp
elif [ "$1" = "finish" ]; then
git checkout master
git merge android-tmp
cd tools-base
git checkout master
git merge android-tmp
else
echo 'Unknown parameter'
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。