mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
092c07d119
- prefer `.bat` extension over `.cmd` for MS-DOS batch, which also avoids confusion with OS/400 `.cmd` files. - cleanup `echo` quotes, drop them consistently. - delete empty output line from one of the error branches. - prefer lowercase commands like the rest of MS-DOS batches. - delete a contraction. - drop backticks from error message. - use `nmake.exe` consistently. - use equal/not-equal operator style consistently. - inline a single-line `if` branch. - delete exceptions and rules dealing with Windows `.cmd` extension. Closes #14084
34 lines
1.4 KiB
Batchfile
34 lines
1.4 KiB
Batchfile
@echo off
|
|
rem ***************************************************************************
|
|
rem * _ _ ____ _
|
|
rem * Project ___| | | | _ \| |
|
|
rem * / __| | | | |_) | |
|
|
rem * | (__| |_| | _ <| |___
|
|
rem * \___|\___/|_| \_\_____|
|
|
rem *
|
|
rem * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
rem *
|
|
rem * This software is licensed as described in the file COPYING, which
|
|
rem * you should have received as part of this distribution. The terms
|
|
rem * are also available at https://curl.se/docs/copyright.html.
|
|
rem *
|
|
rem * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
rem * copies of the Software, and permit persons to whom the Software is
|
|
rem * furnished to do so, under the terms of the COPYING file.
|
|
rem *
|
|
rem * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
rem * KIND, either express or implied.
|
|
rem *
|
|
rem * SPDX-License-Identifier: curl
|
|
rem *
|
|
rem ***************************************************************************
|
|
|
|
where.exe nmake.exe >nul 2>&1
|
|
|
|
if %ERRORLEVEL% EQU 1 (
|
|
echo Error: Cannot find nmake.exe - be sure to run this script from within a Developer Command-Prompt
|
|
) else (
|
|
nmake.exe /f Makefile.vc mode=static DEBUG=yes GEN_PDB=yes
|
|
if %ERRORLEVEL% NEQ 0 echo Error: Build Failed
|
|
)
|