Skip to content

Commit

Permalink
GH-19: Added _compare_vcpkg_overlay_ports.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
negrutiu committed May 31, 2024
1 parent e32f3a1 commit 973e2bc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions _compare_vcpkg_overlay_ports.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off

REM | Manually compare our custom overlay ports with the latest vcpkg ports from GitHub

set vcpkg_dir=%~dp0vcpkg\latest
mkdir "%vcpkg_dir%" > nul 2> nul

if exist "%vcpkg_dir%\.gitignore" (
pushd "%vcpkg_dir%"
echo Pulling latest vcpkg.git . . .&& echo.
git pull --verbose || exit /b !errorlevel!
popd
) else (
pushd "%vcpkg_dir%\.."
git clone https://github.com/Microsoft/vcpkg.git "%vcpkg_dir%" || exit /b !errorlevel!
popd
)

echo.

for /d %%d in (%~dp0\vcpkg_overlay_ports\*) do (
echo Comparing %%~nxd . . .
"%ProgramFiles%\WinMerge\WinMergeU.exe" "%vcpkg_dir%\ports\%%~nxd" "%~dp0\vcpkg_overlay_ports\%%~nxd"
)

0 comments on commit 973e2bc

Please sign in to comment.