*.sh eol=lf
*.[ch] whitespace=tab-in-indent
-# Batch files (bat,cmd) must be run with CRLF line endings.
+# Batch files must be run with CRLF line endings.
# Refer to https://github.com/curl/curl/pull/6442
*.bat text eol=crlf
-*.cmd text eol=crlf
"^m4/zz40-xc-ovr.m4",
"Makefile\\.[a-z]+\$",
"/mkfile",
- "\\.(bat|cmd|sln|vc)\$",
+ "\\.(bat|sln|vc)\$",
"^tests/certs/.+\\.der\$",
"^tests/data/test",
);
my @need_crlf = (
"\\.(bat|sln)\$",
- "^winbuild/.+\\.(cmd|md)\$",
+ "^winbuild/.+\\.md\$",
);
my @space_at_eol = (
projects/wolfssl_override.props
WINBUILD_DIST = winbuild/README.md winbuild/gen_resp_file.bat \
- winbuild/MakefileBuild.vc winbuild/Makefile.vc winbuild/makedebug.cmd
+ winbuild/MakefileBuild.vc winbuild/Makefile.vc winbuild/makedebug.bat
PLAN9_DIST = plan9/include/mkfile \
plan9/include/mkfile \
+++ /dev/null
-# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
-#
-# SPDX-License-Identifier: curl
-
-# OS400 .cmd files are not windows scripts.
-*.cmd text eol=auto
where.exe nmake.exe >nul 2>&1
-IF %ERRORLEVEL% == 1 (
- ECHO Error: Can't find `nmake.exe` - be sure to run this script from within a Developer Command-Prompt
- ECHO.
-) ELSE (
- nmake /f Makefile.vc mode=static DEBUG=yes GEN_PDB=yes
- IF %ERRORLEVEL% NEQ 0 (
- ECHO "Error: Build Failed"
- )
+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
)