Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-11-27 07:02:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6a5f405ba0b0ebe39bf4a1267a4321bd9626627d
6a5f405b
1 parent
e11fa383
add github script
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
33 行增加
和
0 行删除
trunk/scripts/github.commit.sh
trunk/scripts/github.commit.sh
0 → 100755
查看文件 @
6a5f405
#!/bin/bash
echo
"submit code to github.com"
echo
"argv[0]=
$0
"
if
[[
! -f
$0
]]
;
then
echo
"directly execute the scripts on shell."
;
work_dir
=
`
pwd
`
else
echo
"execute scripts in file:
$0
"
;
work_dir
=
`
dirname
$0
`
;
work_dir
=
`
(
cd
${
work_dir
}
&&
pwd
)
`
fi
work_dir
=
`
(
cd
${
work_dir
}
/..
&&
pwd
)
`
product_dir
=
$work_dir
# allow start script from any dir
cd
$work_dir
&&
git checkout master
.
${
product_dir
}
/scripts/_log.sh
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
exit
$ret
;
fi
ok_msg
"导入脚本成功"
source
$work_dir
/scripts/_mirror.utils.sh
git remote -v|grep github.com >/dev/null 2>&1
ret
=
$?
;
if
[[
0 -ne
$ret
]]
;
then
echo
"current not under github.com branch"
exit
-1;
fi
sync_push
"Github"
exit
0
...
...
请
注册
或
登录
后发表评论