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