]>
git.ipfire.org Git - thirdparty/git.git/blob - compat/vcbuild/vcpkg_copy_dlls.bat
2 REM ================================================================
3 REM This script is an optional step. It copies the *.dll and *.pdb
4 REM files (created by vcpkg_install.bat) into the top-level directory
5 REM of the repo so that you can type "./git.exe" and find them without
6 REM having to fixup your PATH.
8 REM NOTE: Because the names of some DLL files change between DEBUG and
9 REM NOTE: RELEASE builds when built using "vcpkg.exe", you will need
10 REM NOTE: to copy up the corresponding version.
11 REM ================================================================
13 SETLOCAL EnableDelayedExpansion
15 @
FOR /F
"delims=" %%D IN
("%~dp0") DO @
SET cwd
=%%~fD
19 SET inst
=%cwd%vcpkg\installed\
%arch%
22 echo Copying RELEASE
mode DLLs to repo root...
23 ) ELSE IF [%1]==[debug] (
25 echo Copying
DEBUG mode DLLs to repo root...
27 echo ERROR
: Invalid argument.
28 echo Usage
: %~
0 release
33 xcopy /e
/s
/v
/y
%inst%\bin\
*.dll ..\..\
34 xcopy /e
/s
/v
/y
%inst%\bin\
*.pdb ..\..\
36 xcopy /e
/s
/v
/y
%inst%\bin\
*.dll ..\..
\t\helper\
37 xcopy /e
/s
/v
/y
%inst%\bin\
*.pdb ..\..
\t\helper\