如何打tag

来源:互联网 发布:ubuntu 14.04 monaco 编辑:程序博客网 时间:2024/06/12 01:28
1. 只在manifests里面增加tag :
repo manifest -r -o .repo/manifests/app__platform_ti_ics_Alpha_ti_generic_product_20120113.xml
git add .
git commit 
git push origin default:/platform/ti/ics_Alpha/ti_generic_product
2. 在所有仓里面打tag ,可使用如下脚本:
 ./make_tag.sh ~/ti_generic app__platform_ti_ics_Alpha_ti_generic_product_20120107_B007.xml platform/ti/ics_Alpha/ti_generic_product
、、、、、、、、、、、、、、、code,,,,,,,,,,,,,,,,,,,,,
################################################################################

echo "********************************************************************************"
echo "                       make_tag is called                                 "
echo "********************************************************************************"
#---------------Repo Argument---------------
# arg1: $1 REPOSITORY_LOCAL_PATH .repo 或.git 所在的路径
# arg2: $2 TAG_NAME 标签名称
#-------------------------------------------

#函数功能:执行单个命令
function run_cmd()
{
    echo "Run: \"$1\""
echo "Begin time: `date`"
    if eval $1; then
echo "Success:"
echo "End time: `date`"
return 0
    else
local result=$?
echo "[$0,Line:$LINENO] Error: error code($result)"
echo "End time: `date`"
exit $result
    fi
}

原创粉丝点击