@SetLocal @PushD "%~dp0" git submodule update --init @If Not Exist "grpc\.git" git clone "https://github.com/grpc/grpc" @If Not Exist "arrow\.git" git clone "https://github.com/pcmoritz/arrow.git" --branch windows_support @If Not Exist "arrow\cpp\thirdparty\flatbuffers\.git" git clone "https://github.com/google/flatbuffers.git" "arrow/cpp/thirdparty/flatbuffers" @If Not Exist "arrow\cpp\thirdparty\parquet\.git" git clone "https://github.com/apache/parquet-cpp.git" "arrow/cpp/thirdparty/parquet" @If Not Exist "numbuf\.git" git clone "https://github.com/amplab/numbuf.git" --branch win @If Not Exist "python\.git" git clone "https://github.com/austinsc/python.git" git -C "grpc" submodule update --init "third_party/protobuf" git -C "grpc" submodule update --init "third_party/nanopb" git -C "grpc" submodule update --init "third_party/zlib" git -C "grpc" apply "%~dp0windows-patches/grpc-projects.patch" git -C "grpc/third_party/protobuf" apply "%~dp0windows-patches/protobuf-projects.patch" git -C "arrow/cpp/thirdparty/flatbuffers" apply "%~dp0windows-patches/flatbuffers-projects.patch" git -C "arrow/cpp/thirdparty/parquet" apply "%~dp0windows-patches/parquet-endian.patch" git -C "python" apply "%~dp0windows-patches/python-pyconfig.patch" @PopD @EndLocal