Skip to content

Commit c2f2cc4

Browse files
committed
libcurl: check out release tag and install PDB
1 parent b6532f3 commit c2f2cc4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

phases/19-libcurl.bat

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ set PROJECT=libcurl
55
set GITHUB_REPO=curl/curl
66

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

@@ -41,5 +39,8 @@ echo.
4139
echo ### Installing
4240
ninja install || exit /b 1
4341

42+
:: install PDB file
43+
xcopy /Y /F lib\libcurl*.pdb "%INSTALL_PREFIX%\bin\" || exit /b 1
44+
4445
:: rename libcurl-d_imp.lib to curl.lib to allow linking using -lcurl
4546
move /y "%INSTALL_PREFIX%\lib\libcurl*.lib" "%INSTALL_PREFIX%\lib\curl.lib" || exit /b 1

scripts/common.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ exit /b %errorlevel%
4949
echo.
5050
:: check out tag/branch if any
5151
if not "%TAG%" == "" (
52-
echo ### Checking out %TAG%
52+
echo ### Checking out "%TAG%"
5353
git fetch --tags || exit /b 1
5454
git checkout -q %TAG% || exit /b 1
5555
)

0 commit comments

Comments
 (0)