如何打tag2
来源:互联网 发布:c语言汇编看什么 编辑:程序博客网 时间:2024/04/29 12:02
#函数功能:repo初始化,包括自动化交互
function make_repo_tag()
{
if [ "NULL" == $BRANCH_NAME ];then
echo "[$0,Line:$LINENO] Error: BRANCH_NAME must be !NULL"
exit 1
fi
run_cmd "repo manifest -r -o .repo/manifests/$TAG_NAME"
run_cmd "repo forall -c \"git tag -m $TAG_NAME $TAG_NAME\""
local TEMP_PATH=$(find . -type d -name .git -print -quit)
local GIT_PATH=${TEMP_PATH%/*}
pushd $GIT_PATH
local REMOTE_NAME=`git remote show`
popd
run_cmd "repo forall -c 'git push $REMOTE_NAME --tags'"
pushd .repo/manifests/
run_cmd "git add ."
run_cmd "git commit -m 'make tag $TAG_NAME'"
local LOCAL_BRANCH_NAME=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
local Mani_REMOTE_NAME=`git remote show`
local TEMPSTRING=`cat .git/config | grep merge| tr -d ' '`
local BRANCH_NAME_CHECK=${TEMPSTRING#*=}
if [ "$BRANCH_NAME" != "$BRANCH_NAME_CHECK" ];then
echo "[$0,Line:$LINENO] Warning: The input of BRANCH_NAME maybe incorrect"
fi
run_cmd "git push $Mani_REMOTE_NAME $LOCAL_BRANCH_NAME:$BRANCH_NAME"
popd
}
function make_repo_tag()
{
if [ "NULL" == $BRANCH_NAME ];then
echo "[$0,Line:$LINENO] Error: BRANCH_NAME must be !NULL"
exit 1
fi
run_cmd "repo manifest -r -o .repo/manifests/$TAG_NAME"
run_cmd "repo forall -c \"git tag -m $TAG_NAME $TAG_NAME\""
local TEMP_PATH=$(find . -type d -name .git -print -quit)
local GIT_PATH=${TEMP_PATH%/*}
pushd $GIT_PATH
local REMOTE_NAME=`git remote show`
popd
run_cmd "repo forall -c 'git push $REMOTE_NAME --tags'"
pushd .repo/manifests/
run_cmd "git add ."
run_cmd "git commit -m 'make tag $TAG_NAME'"
local LOCAL_BRANCH_NAME=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
local Mani_REMOTE_NAME=`git remote show`
local TEMPSTRING=`cat .git/config | grep merge| tr -d ' '`
local BRANCH_NAME_CHECK=${TEMPSTRING#*=}
if [ "$BRANCH_NAME" != "$BRANCH_NAME_CHECK" ];then
echo "[$0,Line:$LINENO] Warning: The input of BRANCH_NAME maybe incorrect"
fi
run_cmd "git push $Mani_REMOTE_NAME $LOCAL_BRANCH_NAME:$BRANCH_NAME"
popd
}
- 如何打tag2
- 如何打jar包
- 如何打jar包
- ClearCase如何打标签
- 如何打领结
- 如何打jar包
- 如何打Jar包?
- 如何 打 JAR 包
- 如何打patch
- 如何打war包
- 如何打jar包
- 如何打patch
- 如何打war包
- 如何打tag
- 如何打war包?
- 如何打tag3
- 如何打JAR包
- 如何打jar包
- Visual Studio 2005/2008中的快捷键与小技巧整理
- Struts2 主题theme
- 我在linux主机用arm-linux-gcc编译后,复制到开发板根目录运行,出现/bin/sh: ./hello not found
- EXT 3.x 使用详解之Ext.grid.GridPanel(二)
- VB学习1
- 如何打tag2
- cvMatchTemplate()和cvMatchShapes() 的使用举例
- 设置屏幕显示模式ScreenOrientation.
- 火车票订票系统的几点优化思考
- Java多线程间的通信
- 互联网平台技术迁移经验杂谈
- 如何打tag3
- 纯div+css水平三级导航菜单
- dos命令导出指定类型的文件列表