]> granicus.if.org Git - vim/commitdiff
patch 8.2.1675: MinGW: testdir makefile deletes non-existing file v8.2.1675
authorBram Moolenaar <Bram@vim.org>
Sun, 13 Sep 2020 19:01:22 +0000 (21:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Sep 2020 19:01:22 +0000 (21:01 +0200)
Problem:    MinGW: testdir makefile deletes non-existing file.
Solution:   Use another way to delete the output file if it already exists.
            (Michael Soyka)

src/testdir/Make_ming.mak
src/version.c

index f9dcfc86e0a3b5bf4e109c8fb952baa7a8b249b3..5e17963c5e8ea5f8bae926d72190b863b5811bd9 100644 (file)
@@ -95,7 +95,7 @@ tinytests: $(SCRIPTS_TINY_OUT)
 # Copy the input files to dostmp, changing the fileformat to dos.
 $(DOSTMP)/%.in : %.in
        if not exist $(DOSTMP)\nul mkdir $(DOSTMP)
-       if not exist $@ $(DEL) $@
+       if exist $(DOSTMP)\$< $(DEL) $(DOSTMP)\$<
        $(VIMPROG) -u dos.vim $(NO_INITS) "+set ff=dos|f $@|wq" $<
 
 # For each input file dostmp/test99.in run the tests.
index 503c6ead0196d58fcde0cd8e38495cde7bd63075..57acd28f22e76a786473adef613c1326f515715f 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1675,
 /**/
     1674,
 /**/