1 Star 5 Fork 0

Git工具集/git_osx_installer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
env.sh 472 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tim Harper 提交于 2017-06-15 13:19 +08:00 . a few fixes
CURRENT_GIT_VERSION=""
function current-git-version() {
if [ -z "$CURRENT_GIT_VERSION" ]; then
if [ "`uname`" == "Darwin" ]; then sed_regexp="-E"; else sed_regexp="-r"; fi
CURRENT_GIT_VERSION=$(curl -L http://git-scm.com/ 2>&1 | grep '<span class="version">' -A 1 | tail -n 1 | sed $sed_regexp 's/ *//')
fi
echo "$CURRENT_GIT_VERSION"
}
function do-make() {
make OSX_VERSION=${OSX_VERSION:-10.9} VERSION=${GIT_VERSION:-$(current-git-version)} "${@}"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/vcs-all-in-one/git_osx_installer.git
git@gitee.com:vcs-all-in-one/git_osx_installer.git
vcs-all-in-one
git_osx_installer
git_osx_installer
master

搜索帮助