HTTP/2 code sharing shell sync-script (#16885)

This commit is contained in:
Günther Foidl 2019-11-12 17:17:58 +01:00 committed by Chris Ross
parent e336f4010a
commit 20f2168869
4 changed files with 41 additions and 3 deletions

View File

@ -4,11 +4,11 @@ SETLOCAL
if not [%1] == [] (set remote_repo=%1) else (set remote_repo=%ASPNETCORE_REPO%)
IF [%remote_repo%] == [] (
echo The 'ASPNETCORE_REPO' environment variable or command line paramter is not set, aborting.
echo The 'ASPNETCORE_REPO' environment variable or command line parameter is not set, aborting.
exit /b 1
)
echo ASPNETCORE_REPO: %remote_repo%
robocopy . %remote_repo%\src\Shared\Http2 /MIR
robocopy .\..\..\..\..\..\tests\Tests\System\Net\Http2\ %remote_repo%\src\Shared\test\Shared.Tests\Http2 /MIR
robocopy .\..\..\..\..\..\tests\Tests\System\Net\Http2\ %remote_repo%\src\Shared\test\Shared.Tests\Http2 /MIR

View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
if [[ -n "$1" ]]; then
remote_repo="$1"
else
remote_repo="$ASPNETCORE_REPO"
fi
if [[ -z "$remote_repo" ]]; then
echo The 'ASPNETCORE_REPO' environment variable or command line parameter is not set, aborting.
exit 1
fi
cd "$(dirname "$0")" || exit 1
echo "ASPNETCORE_REPO: $remote_repo"
rsync -av --delete ./ "$remote_repo"/src/Shared/Http2
rsync -av --delete ./../../../../../tests/Tests/System/Net/Http2/ "$remote_repo"/src/Shared/test/Shared.Tests/Http2

View File

@ -4,7 +4,7 @@ SETLOCAL
if not [%1] == [] (set remote_repo=%1) else (set remote_repo=%COREFX_REPO%)
IF [%remote_repo%] == [] (
echo The 'COREFX_REPO' environment variable or command line paramter is not set, aborting.
echo The 'COREFX_REPO' environment variable or command line parameter is not set, aborting.
exit /b 1
)

View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
if [[ -n "$1" ]]; then
remote_repo="$1"
else
remote_repo="$COREFX_REPO"
fi
if [[ -z "$remote_repo" ]]; then
echo The 'COREFX_REPO' environment variable or command line parameter is not set, aborting.
exit 1
fi
cd "$(dirname "$0")" || exit 1
echo "COREFX_REPO: $remote_repo"
rsync -av --delete ./ "$remote_repo"/src/Common/src/System/Net/Http/Http2
rsync -av --delete ./../test/Shared.Tests/Http2/ "$remote_repo"/src/Common/tests/Tests/System/Net/Http2