]> granicus.if.org Git - curl/commitdiff
winbuild: only delete OUTFILE if it exists
authorrichardthe3rd <richard.alcock@gmail.com>
Thu, 24 May 2018 14:11:44 +0000 (15:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 27 May 2018 21:24:53 +0000 (23:24 +0200)
This removes the slightly annoying "Could not file LIBCURL_OBJS.inc" and
"Could not find CURL_OBJS.inc.inc" message when building into a clean
folder.

closes #2602

winbuild/gen_resp_file.bat

index 434f36963f0a9df3f87085560ebe0c67e7ff938b..c640cee0981ea18660c3747ca2b0d704e23112f5 100755 (executable)
@@ -1,5 +1,7 @@
 @echo OFF
-@del %OUTFILE%
+@if exist %OUTFILE% (
+    del %OUTFILE%
+)
 @echo %MACRO_NAME% = \> %OUTFILE%
 @for %%i in (%*) do @echo              %DIROBJ%/%%i \>>  %OUTFILE%
 @echo. >>  %OUTFILE%