Skip to content

Commit

Permalink
libcurl: check out release tag and install PDB
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Feb 16, 2023
1 parent b6532f3 commit c2f2cc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions phases/19-libcurl.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ set PROJECT=libcurl
set GITHUB_REPO=curl/curl

:: get the latest release tag from GitHub
::
:: note: The curl project tags a release different.
cd %~dp0
for /f "usebackq delims=" %%i in (`call %BASH% '../scripts/get-latest-github-release-tag.sh %GITHUB_REPO% curl'`) do (
for /f "usebackq delims=" %%i in (`call %BASH% '../scripts/get-latest-github-release-tag.sh %GITHUB_REPO% curl-'`) do (
set TAG=%%i
)

Expand Down Expand Up @@ -41,5 +39,8 @@ echo.
echo ### Installing
ninja install || exit /b 1

:: install PDB file
xcopy /Y /F lib\libcurl*.pdb "%INSTALL_PREFIX%\bin\" || exit /b 1

:: rename libcurl-d_imp.lib to curl.lib to allow linking using -lcurl
move /y "%INSTALL_PREFIX%\lib\libcurl*.lib" "%INSTALL_PREFIX%\lib\curl.lib" || exit /b 1
2 changes: 1 addition & 1 deletion scripts/common.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exit /b %errorlevel%
echo.
:: check out tag/branch if any
if not "%TAG%" == "" (
echo ### Checking out %TAG%
echo ### Checking out "%TAG%"
git fetch --tags || exit /b 1
git checkout -q %TAG% || exit /b 1
)
Expand Down

0 comments on commit c2f2cc4

Please sign in to comment.