4 Star 3 Fork 1

张远浩/depot_tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
git-runhooks 610 Bytes
一键复制 编辑 原始数据 按行查看 历史
cloudwebrtc 提交于 2015-10-12 16:04 . [ADD/MOD]解压缩depot_tools文件
#!/usr/bin/env bash
while test "$PWD" != "/"; do
if test -f "$PWD/src/.gitmodules"; then
break
fi
cd ..
done
if ! test -f "$PWD/src/.gitmodules"; then
echo "Could not find the root of your checkout; aborting." 1>&2
exit 1
fi
gclient_spec="solutions=[{'name':'src','url':None,'deps_file':'.DEPS.git'}]"
kernel_name=$(uname -s)
if [ "${kernel_name:0:5}" = "MINGW" ]; then
dir="${0%\\*}"
cmd "/C ${dir}\\python.bat ${dir}\\gclient.py runhooks --spec=$gclient_spec"
else
dir="$(dirname $0)"
PYTHONDONTWRITEBYTECODE=1 exec python "$dir/gclient.py" runhooks --spec="$gclient_spec"
fi
exit $?
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/bluefoxah/depot_tools.git
git@gitee.com:bluefoxah/depot_tools.git
bluefoxah
depot_tools
depot_tools
master

搜索帮助