Skip to content

Commit b719a79

Browse files
authored
Update h2 sync scripts (#17720)
1 parent 0792e9a commit b719a79

File tree

5 files changed

+52
-52
lines changed

5 files changed

+52
-52
lines changed

src/Shared/Http2/CopyToCoreFx.cmd

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/Shared/Http2/CopyToCoreFx.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Shared/Http2/CopyToRuntime.cmd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@ECHO OFF
2+
SETLOCAL
3+
4+
if not [%1] == [] (set remote_repo=%1) else (set remote_repo=%RUNTIME_REPO%)
5+
6+
IF [%remote_repo%] == [] (
7+
echo The 'RUNTIME_REPO' environment variable or command line parameter is not set, aborting.
8+
exit /b 1
9+
)
10+
11+
echo RUNTIME_REPO: %remote_repo%
12+
13+
robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\Http2 /MIR
14+
robocopy .\..\test\Shared.Tests\Http2 %remote_repo%\src\libraries\Common\tests\Tests\System\Net\Http2 /MIR

src/Shared/Http2/CopyToRuntime.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ -n "$1" ]]; then
4+
remote_repo="$1"
5+
else
6+
remote_repo="$RUNTIME_REPO"
7+
fi
8+
9+
if [[ -z "$remote_repo" ]]; then
10+
echo The 'RUNTIME_REPO' environment variable or command line parameter is not set, aborting.
11+
exit 1
12+
fi
13+
14+
cd "$(dirname "$0")" || exit 1
15+
16+
echo "RUNTIME_REPO: $remote_repo"
17+
18+
rsync -av --delete ./ "$remote_repo"/src/libraries/Common/src/System/Net/Http/Http2
19+
rsync -av --delete ./../test/Shared.Tests/Http2/ "$remote_repo"/src/libraries/Common/tests/Tests/System/Net/Http2

src/Shared/Http2/ReadMe.SharedCode.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
The code in this directory is shared between CoreFx and AspNetCore. This contains HTTP/2 protocol infrastructure such as an HPACK implementation. Any changes to this dir need to be checked into both repositories.
1+
The code in this directory is shared between dotnet/runtime and aspnet/AspNetCore. This contains HTTP/2 protocol infrastructure such as an HPACK implementation. Any changes to this dir need to be checked into both repositories.
22

3-
Corefx code paths:
4-
- corefx\src\Common\src\System\Net\Http\Http2
5-
- corefx\src\Common\tests\Tests\System\Net\Http2
6-
AspNetCore code paths:
3+
dotnet/runtime code paths:
4+
- runtime\src\libraries\Common\src\System\Net\Http\Http2
5+
- runtime\src\libraries\Common\tests\Tests\System\Net\Http2
6+
aspnet/AspNetCore code paths:
77
- AspNetCore\src\Shared\Http2
88
- AspNetCore\src\Shared\test\Shared.Tests\Http2
99

1010
## Copying code
11-
To copy code from CoreFx to AspNetCore set ASPNETCORE_REPO to the AspNetCore repo root and then run CopyToAspNetCore.cmd.
12-
To copy code from AspNetCore to CoreFx set COREFX_REPO to the CoreFx repo root and then run CopyToCoreFx.cmd.
11+
To copy code from dotnet/runtime to aspnet/AspNetCore, set ASPNETCORE_REPO to the AspNetCore repo root and then run CopyToAspNetCore.cmd.
12+
To copy code from aspnet/AspNetCore to dotnet/runtime, set RUNTIME_REPO to the runtime repo root and then run CopyToRuntime.cmd.
1313

14-
## Building CoreFx code:
15-
- https://github.com/dotnet/corefx/blob/master/Documentation/building/windows-instructions.md
16-
- https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md
17-
- Run build.cmd from the root once: `PS D:\github\corefx> .\build.cmd`
14+
## Building dotnet/runtime code:
15+
- https://github.com/dotnet/runtime/blob/master/docs/libraries/building/windows-instructions.md
16+
- https://github.com/dotnet/runtime/blob/master/docs/libraries/project-docs/developer-guide.md
17+
- Run libraries.cmd from the root once: `PS D:\github\runtime> .\libraries.cmd`
1818
- Build the individual projects:
19-
- `PS D:\github\corefx\src\Common\tests> dotnet msbuild /t:rebuild`
20-
- `PS D:\github\corefx\src\System.Net.Http\src> dotnet msbuild /t:rebuild`
19+
- `PS D:\github\dotnet\src\libraries\Common\tests> dotnet msbuild /t:rebuild`
20+
- `PS D:\github\dotnet\src\libraries\System.Net.Http\src> dotnet msbuild /t:rebuild`
2121

22-
### Running CoreFx tests:
23-
- `PS D:\github\corefx\src\Common\tests> dotnet msbuild /t:rebuildandtest`
24-
- `PS D:\github\corefx\src\System.Net.Http\tests\UnitTests> dotnet msbuild /t:rebuildandtest`
22+
### Running dotnet/runtime tests:
23+
- `PS D:\github\runtime\src\libraries\Common\tests> dotnet msbuild /t:rebuildandtest`
24+
- `PS D:\github\runtime\src\libraries\System.Net.Http\tests\UnitTests> dotnet msbuild /t:rebuildandtest`
2525

26-
## Building AspNetCore code:
26+
## Building aspnet/AspNetCore code:
2727
- https://github.com/aspnet/AspNetCore/blob/master/docs/BuildFromSource.md
2828
- Run restore in the root once: `PS D:\github\AspNetCore> .\restore.cmd`
2929
- Activate to use the repo local runtime: `PS D:\github\AspNetCore> . .\activate.ps1`
3030
- Build the individual projects:
3131
- `(AspNetCore) PS D:\github\AspNetCore\src\Shared\test\Shared.Tests> dotnet msbuild`
3232
- `(AspNetCore) PS D:\github\AspNetCore\src\servers\Kestrel\core\src> dotnet msbuild`
3333

34-
### Running AspNetCore tests:
34+
### Running aspnet/AspNetCore tests:
3535
- `(AspNetCore) PS D:\github\AspNetCore\src\Shared\test\Shared.Tests> dotnet test`
36-
- `(AspNetCore) PS D:\github\AspNetCore\src\servers\Kestrel\core\test> dotnet test`
36+
- `(AspNetCore) PS D:\github\AspNetCore\src\servers\Kestrel\core\test> dotnet test`

0 commit comments

Comments
 (0)