]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
winbuild: drop `gen_resp_file.bat`
authorViktor Szakats <commit@vsz.me>
Thu, 31 Oct 2024 09:17:47 +0000 (10:17 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 1 Nov 2024 10:36:54 +0000 (11:36 +0100)
`gen_resp_file.bat` could be reduced to 3 lines.
Those lines are simple to use from `Makefile.vc` as-is.

Also drop the unnecessary tabs.

Closes #15463

Makefile.am
winbuild/Makefile.vc
winbuild/gen_resp_file.bat [deleted file]

index be3f520bba64f5ecb77aebb1f8e7b202d45e2e29..fbfb8b044730a5d9aacaf4fb8f06c7d2ccfc53e6 100644 (file)
@@ -69,7 +69,7 @@ VC_DIST = projects/README.md                           \
  projects/wolfssl_options.h                            \
  projects/wolfssl_override.props
 
-WINBUILD_DIST = winbuild/README.md winbuild/gen_resp_file.bat \
+WINBUILD_DIST = winbuild/README.md \
  winbuild/MakefileBuild.vc winbuild/Makefile.vc winbuild/makedebug.bat
 
 PLAN9_DIST = plan9/include/mkfile \
index 1876ebda099c6509839bc06edeface5fda5cc3c4..bc20d05d85b2e55cf05f94391abebb57c8ffbc14 100644 (file)
@@ -284,15 +284,13 @@ CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl
 DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\
 
 $(MODE):
-       @SET DIROBJ=$(LIBCURL_DIROBJ)
-       @SET MACRO_NAME=LIBCURL_OBJS
-       @SET OUTFILE=LIBCURL_OBJS.inc
-       @CALL gen_resp_file.bat $(LIBCURL_OBJS)
-
-       @SET DIROBJ=$(CURL_DIROBJ)
-       @SET MACRO_NAME=CURL_OBJS
-       @SET OUTFILE=CURL_OBJS.inc
-       @CALL gen_resp_file.bat $(CURL_OBJS)
+       @echo LIBCURL_OBJS = \> LIBCURL_OBJS.inc
+       @for %%i in ($(LIBCURL_OBJS)) do @echo $(LIBCURL_DIROBJ)/%%i \>> LIBCURL_OBJS.inc
+       @echo. >> LIBCURL_OBJS.inc
+
+       @echo CURL_OBJS = \> CURL_OBJS.inc
+       @for %%i in ($(CURL_OBJS)) do @echo $(CURL_DIROBJ)/%%i \>> CURL_OBJS.inc
+       @echo. >> CURL_OBJS.inc
 
        @SET CONFIG_NAME_LIB=$(CONFIG_NAME_LIB)
        @SET MACHINE=$(MACHINE)
diff --git a/winbuild/gen_resp_file.bat b/winbuild/gen_resp_file.bat
deleted file mode 100755 (executable)
index d0735da..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-@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 ***************************************************************************
-
-if exist %OUTFILE% (
-  del %OUTFILE%
-)
-
-echo %MACRO_NAME% = \> %OUTFILE%
-for %%i in (%*) do echo                %DIROBJ%/%%i \>> %OUTFILE%
-echo. >> %OUTFILE%
-
-:END