2 Star 0 Fork 0

痴者工良 / coreclr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sync.sh 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
Steve MacLean 提交于 2019-02-27 16:53 . Fix sync.sh syntax error (#22883)
#!/usr/bin/env bash
usage()
{
echo "Usage: sync [-p]"
echo "Repository syncing script."
echo " -p Restore all NuGet packages for the repository"
echo "If no option is specified, then \"sync.sh -p\" is implied."
exit 1
}
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
unprocessedBuildArgs=
# Parse arguments
# Assume the default '-p' argument if the only arguments specified are specified after double dash.
# Only position parameters can be specified after the double dash.
if [ $# == 0 ] || [ "$1" == "--" ]; then
buildArgs="./build.proj /p:RestoreDuringBuild=true /t:Sync"
if [ "$1" == "--" ]; then
shift
fi
fi
while [[ $# -gt 0 ]]
do
opt="$1"
case $opt in
-h|--help)
usage
;;
-p)
buildArgs="./build.proj /p:RestoreDuringBuild=true /t:Sync"
;;
*)
unprocessedBuildArgs="$unprocessedBuildArgs $1"
esac
shift
done
$working_tree_root/dotnet.sh msbuild /nologo /verbosity:minimal /clp:Summary /flp:v=detailed\;LogFile=sync.log $buildArgs $unprocessedBuildArgs
if [ $? -ne 0 ]
then
echo "ERROR: An error occurred while syncing packages; See $working_tree_root/sync.log for more details. There may have been networking problems, so please try again in a few minutes."
exit 1
fi
echo "Sync completed successfully."
exit 0
1
https://gitee.com/whuanle/coreclr.git
git@gitee.com:whuanle/coreclr.git
whuanle
coreclr
coreclr
ArmFailureProbe

搜索帮助