forked from plasticbox/grpc-windows
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgrpc_clone.bat
40 lines (29 loc) · 1.2 KB
/
grpc_clone.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
pushd %~dp0
echo #### grpc clone start!
echo #### git clone
git clone -b release/v1.0.1-patch-zlib -c core.eol=lf -c core.autocrlf=input https://github.com/jozefizso/grpc grpc
cd grpc
git submodule update --init
git submodule foreach --recursive --quiet git config core.eol lf
git submodule foreach --recursive --quiet git config core.autocrlf input
git submodule foreach --recursive --quiet git rm -rf --cached .
git submodule foreach --recursive --quiet git reset --hard HEAD
cd third_party\protobuf
git checkout -b v3.1.0 v3.1.0
popd
pushd %~dp0
echo #### props edit
powershell -executionpolicy bypass -file edit_props.ps1
:: patch Protobuf with file version information
robocopy .\protobuf-patch .\grpc\third_party\protobuf /e /nfl /ndl
:: patch grpc and protoc plugins
robocopy .\grpc-patch .\grpc /e /nfl /ndl
powershell -executionpolicy bypass -file grpc_cpp_plugin_patch.ps1
echo #### nuget packages install
mkdir grpc\vsprojects\packages & cd grpc\vsprojects\packages
powershell -executionpolicy bypass -Command Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile %cd%\nuget.exe
nuget.exe install ..\vcxproj\grpc\packages.config
echo #### grpc clone done!
popd
pause